awslabs / aws-athena-query-federation

The Amazon Athena Query Federation SDK allows you to customize Amazon Athena with your own data sources and code.
Apache License 2.0
556 stars 292 forks source link

[BUG] No data returned on using WHERE clause in SELECT query with connector HBase #2327

Open abhishekpoddar-trianz opened 1 week ago

abhishekpoddar-trianz commented 1 week ago

Describe the bug No data returned on using WHERE clause in SELECT query

To Reproduce

Expected behavior When using WHERE clause in the SELECT query, expectation is that it returns the respective row.

abhishekpoddar-trianz commented 2 days ago

On using the Glue table for HBase data the mentioned query for binary data works fine. Same is mentioned in the documentation: https://docs.aws.amazon.com/athena/latest/ug/connectors-hbase.html#connectors-hbase-data-type-support

Further, instead of using binary data directly as in the below query (which is considered as BIGINT) SELECT * FROM "lambda:hbasev2finaltest".default.datatypes_test where "cf2:binary_column"=01010101

if we query it with escape character then it woks fine. Something like below: SELECT * FROM "lambda:hbase-master-15-10-2024"."default"."binary_test" where "cf:binary_column" = X'01 01 01 01'

Example with detailed steps is in the attached document.

As no code changes required. So, this issue can be closed now.

athena-hbase-binary-datatype.docx