Gokul Kolady has uploaded this change for review. ( https://gerrit.cloudera.org/25393
Change subject: CDPD-107225: Add OpenSearch as an External Data Source ...................................................................... CDPD-107225: Add OpenSearch as an External Data Source Adds OPENSEARCH as a supported database.type for external JDBC tables. OpenSearch SQL needs a few deviations from the generic accessor: COUNT(*) is pushed down to the index instead of wrapping the query in a derived table, OFFSET without LIMIT is rejected rather than silently returning the wrong rows, healthy connections are returned to the DBCP pool so scans reuse the HTTP and TLS session, and column names are quoted with backticks. To allow this, GenericJdbcDatabaseAccessor gains getCountQuery() and releaseConnection() hooks; behavior for the existing database types is unchanged. Testing: - Unit tests for the count-query rewrite, LIMIT/OFFSET, connection release and URL assembly. - End-to-end TestOpenSearchExtJdbcTables, exhaustive only, against a dockerized OpenSearch with a keystore-stored password. Skips when docker is unavailable. Change-Id: Ifbd4c0a06e6422f06a8270bf652d91a73a714de7 --- M docs/topics/impala_jdbc_external_table.xml M fe/src/main/java/org/apache/impala/extdatasource/jdbc/JdbcDataSource.java M fe/src/main/java/org/apache/impala/extdatasource/jdbc/conf/DatabaseType.java M fe/src/main/java/org/apache/impala/extdatasource/jdbc/dao/DatabaseAccessorFactory.java M fe/src/main/java/org/apache/impala/extdatasource/jdbc/dao/GenericJdbcDatabaseAccessor.java A fe/src/main/java/org/apache/impala/extdatasource/jdbc/dao/OpenSearchDatabaseAccessor.java A fe/src/test/java/org/apache/impala/extdatasource/jdbc/JdbcDataSourceQuoteTest.java A fe/src/test/java/org/apache/impala/extdatasource/jdbc/dao/OpenSearchDatabaseAccessorTest.java A testdata/bin/clean-opensearch-env.sh M testdata/bin/copy-ext-data-sources.sh A testdata/bin/download-opensearch-jdbc-driver.sh A testdata/bin/setup-opensearch-env.sh A testdata/workloads/functional-query/queries/QueryTest/opensearch-ext-jdbc-tables.test M tests/custom_cluster/test_ext_data_sources.py 14 files changed, 982 insertions(+), 21 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/25393/1 -- To view, visit https://gerrit.cloudera.org/25393 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ifbd4c0a06e6422f06a8270bf652d91a73a714de7 Gerrit-Change-Number: 25393 Gerrit-PatchSet: 1 Gerrit-Owner: Gokul Kolady <[email protected]> Gerrit-Reviewer: Wenzhe Zhou <[email protected]>
