Commits


Alexander Blazhkov authored and GitHub committed 22b42b0e771
GH-39558: [Java] Add SQL_ALL_TABLES_ARE_SELECTABLE, SQL_NULL_ORDERING and SQL_MAX_COLUMNS_IN_TABLE support to SqlInfoBuilder (#39561) This PR adds ability to specify `SQL_ALL_TABLES_ARE_SELECTABLE` and `SQL_NULL_ORDERING` metadata in `org.apache.arrow.flight.sql.SqlInfoBuilder`. ### Rationale for this change Without this change it is impossible to specify whether all tables are selectable, supported null ordering and maximum number of columns in table using `SqlInfoBuilder`. ### What changes are included in this PR? In this PR two methods are added to `SqlInfoBuilder`: - `withSqlAllTablesAreSelectable` accepting boolean parameter that specifies whether all tables are selectable - `withSqlNullOrdering` accepting `org.apache.arrow.flight.sql.impl.FlightSql.SqlNullOrdering` value that specifies supported null ordering - `withSqlMaxColumnsInTable` accepting long parameter that specifies maximum number of columns in table ### Are these changes tested? To ensure correctness `org.apache.arrow.flight.TestFlightSql#testGetSqlInfoResultsWithManyArgs` test is added). ### Are there any user-facing changes? This PR does not contain any breaking changes of user API. * Closes: #39558 Authored-by: Alexander Blazhkov <ablazhkov@querifylabs.com> Signed-off-by: David Li <li.davidm96@gmail.com>