Sigma-Ma opened a new pull request, #186: URL: https://github.com/apache/hbase-connectors/pull/186
JIRA: https://issues.apache.org/jira/browse/HBASE-30586 ## What changes were proposed in this pull request? Fix `RowKeyFilter.mergeIntersect` in Spark 3 and Spark 4. Keep a point from either operand when it matches a point or falls within a scan range in the other operand. In Spark 3, return an empty RDD when the intersection has no points or ranges. ## Why are the changes needed? An `AND` between two predicates that each combine a point lookup and a range can drop valid rows. In the reported query, each of `row002` and `row010` matches a point on one side and a range on the other, but the query returned no rows. ## How was this patch tested? The regression queries verify that each expected key is returned once in both `AND` orders. The Spark 3 empty-intersection test also verifies that no input partitions are created. ```bash mvn -B -ntp -o -pl spark/hbase-spark -Dtest=NoSuchTest -Dsurefire.failIfNoSpecifiedTests=false -Dsuites=org.apache.hadoop.hbase.spark.RowKeyFilterSuite,org.apache.hadoop.hbase.spark.DefaultSourceSuite test mvn -B -ntp -Pspark4 -pl spark4/hbase-spark4 -Dsuites=org.apache.hadoop.hbase.spark.datasources.RowKeyFilterSuite,org.apache.hadoop.hbase.spark.datasources.HBaseTableProviderSuite,org.apache.hadoop.hbase.spark.datasources.ScanRangeSuite test ``` -- 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]
