Class CassandraAdapterTest

  • @NotThreadSafe
    public class CassandraAdapterTest
    extends java.lang.Object
    Tests for the org.apache.calcite.adapter.cassandra package.

    Will start embedded cassandra cluster and populate it from local twissandra.cql file. All configuration files are located in test classpath.

    Note that tests will be skipped if running on JDK11+ (which is not yet supported by cassandra) see CASSANDRA-9608.

    • Field Detail

      • RULE

        public static final org.junit.rules.ExternalResource RULE

        private static final<java.lang.String,​java.lang.String> TWISSANDRA
        Connection factory based on the "mongo-zips" model.
    • Constructor Detail

      • CassandraAdapterTest

        public CassandraAdapterTest()
    • Method Detail

      • enabled

        private static boolean enabled()
        Whether to run this test.

        Enabled by default, unless explicitly disabled from command line (-Dcalcite.test.cassandra=false) or running on incompatible JDK version (see below).

        As of this wiring Cassandra 4.x is not yet released and we're using 3.x (which fails on JDK11+). All cassandra tests will be skipped if running on JDK11+.

        true if test is compatible with current environment, false otherwise
        See Also:
      • initCassandraIfEnabled

        private static org.junit.rules.ExternalResource initCassandraIfEnabled()
      • setUp

        public static void setUp()
      • testSelect

        public void testSelect()
      • testFilter

        public void testFilter()
      • testFilterUUID

        public void testFilterUUID()
      • testSort

        public void testSort()
      • testProject

        public void testProject()
      • testProjectAlias

        public void testProjectAlias()
      • testProjectConstant

        public void testProjectConstant()
      • testLimit

        public void testLimit()
      • testSortLimit

        public void testSortLimit()
      • testSortOffset

        public void testSortOffset()
      • testMaterializedView

        public void testMaterializedView()