Open iammehrabalam opened 3 years ago
Can you please mention the Hive version and distribution you are using? Different Hive versions allow different coercions.
This has the same root cause as https://github.com/trinodb/trino/issues/2817 (missing type coercions between numeric and varchar types).
Numeric to varchar type coercion is not covered by existing cases in TestHiveCoercion too.
Earlier we were storing score data as a string but now we are storing it as double. Due to this data across partitions is inconsistent.
So to read the score we created a presto table
Basically, we want to read the score as varchar instead of double because of inconsistency. Queries working in the hive but not in presto.
But when execute the below query in presto getting an exception select * from demo_table limit 10;