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:
AssertionError: assertion failed
org.apache.spark.SparkException: [INTERNAL_ERROR] The Spark SQL phase planning failed with an internal error. You hit a bug in Spark or the Spark plugins you use. Please, report this bug to the corresponding communities or vendors, and provide the full stack trace.
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