DataSource Partition Key Index Pushdowns Broken for ProtocolVersion 3

Description

After fixing the test to run against PV3 I noticed the following failing tests

[info] - should allow to select rows with indexed columns that belong to partition key *** FAILED *** (106 milliseconds) [info] - should allow to select rows with indexed partition and regular columns *** FAILED *** (69 milliseconds)

Both of these are failing because they use CQL conventions of pushing down predicates which are not allowed in PV3.

[info] org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 3.0 failed 1 times, most recent failure: Lost task 0.0 in stage 3.0 (TID 3, localhost): java.io.IOException: Exception during preparation of SELECT "ipk1", "pk2", "d2", "id1" FROM "test_cassandra_sql_spec_1"."index_test" WHERE token("ipk1", "pk2") > ? AND token("ipk1", "pk2") <= ? AND "ipk1" = ? ALLOW FILTERING: ipk1 cannot be restricted by more than one relation if it includes an Equal

Pull Requests

http://github.com/datastax/spark-cassandra-connector/pull/1007 --1.6 https://github.com/datastax/spark-cassandra-connector/pull/1037 -- Spark 2.0/Master

Activity

Show:

Russell Spitzer August 17, 2016 at 5:30 PM

Fixed

Details

Assignee

Reporter

Reviewer

Components

Fix versions

Affects versions

Priority

Created July 19, 2016 at 7:58 PM
Updated October 17, 2016 at 8:26 PM
Resolved September 26, 2016 at 5:05 PM