cube icon indicating copy to clipboard operation
cube copied to clipboard

Athena: SYNTAX_ERROR: IN value and list items must be the same type

Open 9teen90nine opened this issue 5 years ago • 3 comments

This error happens when you set a filter for a numeric (or other non-string) dimension or measure with multiple values. It looks like athena requires to cast all values in the IN statement to the type of dimension/measure.

9teen90nine avatar Mar 07 '19 10:03 9teen90nine

Hello I'm getting a somewhat similar error IN value and list items must be the same type: varchar

I'm querying Athena using boto3 Query: SELECT a.column1 FROM ABC a WHERE a.column1 IN ('abc', 'xyz')

python: 3.8 boto3: 1.24.30

Is there any updates ?

rajanjha786 avatar Jul 15 '22 10:07 rajanjha786

Any fixes to this ?

aayush801 avatar Aug 18 '22 15:08 aayush801

I am also facing the same issue, any fixes to this ?

chandrakantsn avatar Sep 16 '22 17:09 chandrakantsn

Any fixes to this?

sankaramoctar avatar May 01 '23 19:05 sankaramoctar

If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.

github-actions[bot] avatar Sep 01 '23 12:09 github-actions[bot]