awslabs/amazon-qldb-driver-python

IonPyBool value gets converted to IonPyInt

Closed this issue · 2 comments

Description

Documents on QLDB with boolean values get automatically converted to IonPyInt upon SELECT. Expected behavior is to retrieve an IonPyBool value instead.

Example

Sample document stored on Amazon QLDB:

{
  "doc_id": "1",
  "conditions": {
    "1_monthly_balance": {
      "product_id": "1",
      "consumption_metric": true,
      "indicator": "is_active"
    }
  }
}

Sample document retrieved after SELECT statement:

{
  "doc_id": "1",
  "conditions": {
    "1_monthly_balance": {
      "product_id": "1",
      "consumption_metric": 1,
      "indicator": "is_active"
    }
  }
}

Environment

  • Amazon QLDB Python Driver Version: 3.2.2
  • Python language version: 3.9
  • OS you’re using: Testing on a AWS Lambda Function

Hi,

I'm unable to reproduce this issue. Which version of amazon.ion are you using?

Closing the issue according to 3 days auto resolving SLA.