Class FlightSqlScenario
java.lang.Object
org.apache.arrow.flight.integration.tests.FlightSqlScenario
- Direct Known Subclasses:
FlightSqlExtensionScenario
Integration test scenario for validating Flight SQL specs across multiple implementations. This
should ensure that RPC objects are being built and parsed correctly for multiple languages and
that the Arrow schemas are returned as expected.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte[]
static final String
static final FlightSqlClient.SubstraitPlan
static final byte[]
static final String
static final byte[]
static final long
static final long
static final long
static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildServer
(FlightServer.Builder builder) void
client
(BufferAllocator allocator, Location location, FlightClient client) producer
(BufferAllocator allocator, Location location) protected void
validate
(Schema expectedSchema, FlightInfo flightInfo, FlightSqlClient sqlClient) protected void
validateSchema
(Schema expected, SchemaResult actual)
-
Field Details
-
UPDATE_STATEMENT_EXPECTED_ROWS
public static final long UPDATE_STATEMENT_EXPECTED_ROWS- See Also:
-
UPDATE_STATEMENT_WITH_TRANSACTION_EXPECTED_ROWS
public static final long UPDATE_STATEMENT_WITH_TRANSACTION_EXPECTED_ROWS- See Also:
-
UPDATE_PREPARED_STATEMENT_EXPECTED_ROWS
public static final long UPDATE_PREPARED_STATEMENT_EXPECTED_ROWS- See Also:
-
UPDATE_PREPARED_STATEMENT_WITH_TRANSACTION_EXPECTED_ROWS
public static final long UPDATE_PREPARED_STATEMENT_WITH_TRANSACTION_EXPECTED_ROWS- See Also:
-
SAVEPOINT_ID
public static final byte[] SAVEPOINT_ID -
SAVEPOINT_NAME
- See Also:
-
SUBSTRAIT_PLAN_TEXT
public static final byte[] SUBSTRAIT_PLAN_TEXT -
SUBSTRAIT_VERSION
- See Also:
-
SUBSTRAIT_PLAN
-
TRANSACTION_ID
public static final byte[] TRANSACTION_ID
-
-
Constructor Details
-
FlightSqlScenario
public FlightSqlScenario()
-
-
Method Details
-
producer
- Throws:
Exception
-
buildServer
- Throws:
Exception
-
client
public void client(BufferAllocator allocator, Location location, FlightClient client) throws Exception - Throws:
Exception
-
validate
protected void validate(Schema expectedSchema, FlightInfo flightInfo, FlightSqlClient sqlClient) throws Exception - Throws:
Exception
-
validateSchema
-