diff --git a/README.md b/README.md index 13fad62..b15e5c1 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Links: * https://arrow.apache.org/blog/2022/02/16/introducing-arrow-flight-sql/ Protocols: +* https://github.com/apache/arrow/tree/master/format * [Flight](https://github.com/apache/arrow/blob/master/format/Flight.proto) * [FlightSql](https://github.com/apache/arrow/blob/master/format/FlightSql.proto) diff --git a/proto/Flight.proto b/proto/Flight.proto index 87e5fda..b50cfff 100644 --- a/proto/Flight.proto +++ b/proto/Flight.proto @@ -70,7 +70,7 @@ service FlightService { * GetFlightInfo this interface may generate a new flight that was not previously * available in ListFlights. */ - rpc GetSchema(FlightDescriptor) returns (SchemaResult) {} + rpc GetSchema(FlightDescriptor) returns (SchemaResult) {} /* * Retrieve a single stream associated with a particular descriptor @@ -359,4 +359,4 @@ message FlightData { */ message PutResult { bytes app_metadata = 1; -} +} \ No newline at end of file diff --git a/proto/FlightSql.proto b/proto/FlightSql.proto index d6c58bf..253fbb6 100644 --- a/proto/FlightSql.proto +++ b/proto/FlightSql.proto @@ -345,7 +345,10 @@ enum SqlInfo { // Retrieves a UTF-8 string with the preferred term for "procedure". SQL_PROCEDURE_TERM = 530; - // Retrieves a UTF-8 string with the preferred term for "catalog". + /* + * Retrieves a UTF-8 string with the preferred term for "catalog". + * If a empty string is returned its assumed that the server does NOT supports catalogs. + */ SQL_CATALOG_TERM = 531; /* @@ -1118,6 +1121,7 @@ message CommandGetDbSchemas { * - ARROW:FLIGHT:SQL:CATALOG_NAME - Table's catalog name * - ARROW:FLIGHT:SQL:DB_SCHEMA_NAME - Database schema name * - ARROW:FLIGHT:SQL:TABLE_NAME - Table name + * - ARROW:FLIGHT:SQL:TYPE_NAME - The data source-specific name for the data type of the column. * - ARROW:FLIGHT:SQL:PRECISION - Column precision/size * - ARROW:FLIGHT:SQL:SCALE - Column scale/decimal digits if applicable * - ARROW:FLIGHT:SQL:IS_AUTO_INCREMENT - "1" indicates if the column is auto incremented, "0" otherwise. @@ -1457,6 +1461,7 @@ message ActionClosePreparedStatementRequest { * - ARROW:FLIGHT:SQL:CATALOG_NAME - Table's catalog name * - ARROW:FLIGHT:SQL:DB_SCHEMA_NAME - Database schema name * - ARROW:FLIGHT:SQL:TABLE_NAME - Table name + * - ARROW:FLIGHT:SQL:TYPE_NAME - The data source-specific name for the data type of the column. * - ARROW:FLIGHT:SQL:PRECISION - Column precision/size * - ARROW:FLIGHT:SQL:SCALE - Column scale/decimal digits if applicable * - ARROW:FLIGHT:SQL:IS_AUTO_INCREMENT - "1" indicates if the column is auto incremented, "0" otherwise. @@ -1491,6 +1496,7 @@ message TicketStatementQuery { * - ARROW:FLIGHT:SQL:CATALOG_NAME - Table's catalog name * - ARROW:FLIGHT:SQL:DB_SCHEMA_NAME - Database schema name * - ARROW:FLIGHT:SQL:TABLE_NAME - Table name + * - ARROW:FLIGHT:SQL:TYPE_NAME - The data source-specific name for the data type of the column. * - ARROW:FLIGHT:SQL:PRECISION - Column precision/size * - ARROW:FLIGHT:SQL:SCALE - Column scale/decimal digits if applicable * - ARROW:FLIGHT:SQL:IS_AUTO_INCREMENT - "1" indicates if the column is auto incremented, "0" otherwise. @@ -1545,4 +1551,4 @@ message DoPutUpdateResult { extend google.protobuf.MessageOptions { bool experimental = 1000; -} +} \ No newline at end of file