Class SqlTestUtil
java.lang.Object
org.apache.arrow.adbc.driver.testsuite.SqlTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.arrow.vector.types.pojo.SchemaingestTableIntsStrs(org.apache.arrow.memory.BufferAllocator allocator, AdbcConnection connection, String tableName) Load a simple table with two columns.voidingestTablesWithReferentialConstraint(org.apache.arrow.memory.BufferAllocator allocator, AdbcConnection connection, String mainTable, String dependentTable) Load two tables with foreign key relationship between themorg.apache.arrow.vector.types.pojo.SchemaingestTableWithConstraints(org.apache.arrow.memory.BufferAllocator allocator, AdbcConnection connection, String tableName) Load a table with composite primary keystatic booleanisCI()Check if we are running in the Arrow CI.
-
Constructor Details
-
SqlTestUtil
-
-
Method Details
-
isCI
public static boolean isCI()Check if we are running in the Arrow CI. -
ingestTableIntsStrs
public org.apache.arrow.vector.types.pojo.Schema ingestTableIntsStrs(org.apache.arrow.memory.BufferAllocator allocator, AdbcConnection connection, String tableName) throws Exception Load a simple table with two columns.- Throws:
Exception
-
ingestTableWithConstraints
public org.apache.arrow.vector.types.pojo.Schema ingestTableWithConstraints(org.apache.arrow.memory.BufferAllocator allocator, AdbcConnection connection, String tableName) throws Exception Load a table with composite primary key- Throws:
Exception
-
ingestTablesWithReferentialConstraint
public void ingestTablesWithReferentialConstraint(org.apache.arrow.memory.BufferAllocator allocator, AdbcConnection connection, String mainTable, String dependentTable) throws Exception Load two tables with foreign key relationship between them- Throws:
Exception
-