forked from datastax/spark-cassandra-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SPARKC-405: Disallow TimeUUID Predicate Pushdown
Timeuuids are compared differently in Spark and in Cassandra. In Cassandra Timeuuids are compared bas on the Time portion of the binary data. In Spark they are compared lexically (in byte order). In Spark < 1.6 all filters in Dataframes are applied twice, once at the DataSource and once in Spark. This double application would be done using both of the above comparitors leading to incorrect results. We will now throw exceptions if we sense an end user is trying to perform one of these impossible comparisons.
- Loading branch information
1 parent
154bb52
commit 57976a0
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters