Class SqlTestUtil
java.lang.Object
org.apache.arrow.adbc.driver.testsuite.SqlTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioningestTableIntsStrs(BufferAllocator allocator, AdbcConnection connection, String tableName) Load a simple table with two columns.voidingestTablesWithReferentialConstraint(BufferAllocator allocator, AdbcConnection connection, String mainTable, String dependentTable) Load two tables with foreign key relationship between themingestTableWithConstraints(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 Schema ingestTableIntsStrs(BufferAllocator allocator, AdbcConnection connection, String tableName) throws Exception Load a simple table with two columns.- Throws:
Exception
-
ingestTableWithConstraints
public Schema ingestTableWithConstraints(BufferAllocator allocator, AdbcConnection connection, String tableName) throws Exception Load a table with composite primary key- Throws:
Exception
-
ingestTablesWithReferentialConstraint
public void ingestTablesWithReferentialConstraint(BufferAllocator allocator, AdbcConnection connection, String mainTable, String dependentTable) throws Exception Load two tables with foreign key relationship between them- Throws:
Exception
-