frankgh commented on code in PR #213:
URL: 
https://github.com/apache/cassandra-analytics/pull/213#discussion_r3328727589


##########
cassandra-analytics-core/src/main/spark4/org/apache/cassandra/spark/sparksql/CassandraPartitioning.java:
##########
@@ -19,21 +19,16 @@
 
 package org.apache.cassandra.spark.sparksql;
 
-import org.apache.cassandra.spark.data.DataLayer;
-import org.apache.spark.sql.connector.read.partitioning.Partitioning;
+import org.apache.spark.sql.connector.read.partitioning.UnknownPartitioning;
 
-class CassandraPartitioning implements Partitioning
+/**
+ * Cassandra input partitions are token ranges, not groups of rows sharing one 
partition key value,
+ * so the connector reports Spark's unknown partitioning rather than 
keyed-group partitioning.
+ */
+class CassandraPartitioning extends UnknownPartitioning

Review Comment:
   do we even need the `CassandraPartitioning`? Can we directly instantiate an 
`UnknownPartitioning` instance from `CassandraScanBuilder`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to