Internal Error when querying a doubleType column of a delta table using ">" "<" operators
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 07:55 AM - edited 02-05-2024 07:56 AM
Hi there,
we are currently facing a pretty confusing issue:
We have a delta table (~2TB) which has been working just fine over the last few years and months. For a few days or weeks now, querying the table on one of its columns, let´s call it double_column, from datatype DoubleType, using ">" "<" operators, results in an error.
So a query like...
SELECT * FROM example_table WHERE double_column > 1
... would throw an error, whereas using "==" or "!="... works just fine.
The following error is thrown:
However, querying an older version of the table works just fine:
SELECT * FROM example_table VERSION AS OF 100 WHERE double_column > 1
...returns the desired result.
What´s even more confusing, when we query the latest version of the table using...
SELECT * FROM example_table VERSION AS OF 500 [this is the latest version] WHERE double_column > 1
...it works as well, even though it should query the same state of the table as the first query, right?
Would be nice if anyone has some suggestions on how to fix this 🙂
kind regards
Christoph