sarankk commented on code in PR #155:
URL:
https://github.com/apache/cassandra-analytics/pull/155#discussion_r2539774293
##########
cassandra-analytics-core/src/test/java/org/apache/cassandra/spark/data/LocalDataLayerTests.java:
##########
@@ -88,4 +97,98 @@ public void testEquality(CassandraBridge bridge)
assertThat(dataLayer2).isEqualTo(dataLayer1);
assertThat(dataLayer2.hashCode()).isEqualTo(dataLayer1.hashCode());
}
+
+ @ParameterizedTest
+ @MethodSource("org.apache.cassandra.spark.data.VersionRunner#bridges")
+ public void testTimeRangeFilterFromOptions(CassandraBridge bridge)
+ {
+ Map<String, String> options = new HashMap<>();
+ options.put("version", bridge.getVersion().name());
+ options.put("partitioner", Partitioner.Murmur3Partitioner.name());
+ options.put("keyspace", "test_keyspace");
+ options.put("createstmt", SchemaTests.SCHEMA);
+ options.put("dirs", "/tmp/data1,/tmp/data2");
+ options.put("sstable_start_timestamp_micros", "1000");
+ options.put("sstable_end_timestamp_micros", "2000");
+
+ LocalDataLayer dataLayer = LocalDataLayer.from(options);
+
+ List<TimeRangeFilter> filters = dataLayer.sstableTimeRangeFilters();
+ assertThat(filters).hasSize(1);
Review Comment:
Currently we do not have support for reading list in spark options. We can
add that later when required.
--
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]