xylaaaaa opened a new pull request, #63783:
URL: https://github.com/apache/doris/pull/63783
## Proposed changes
- Add Snowflake as a JDBC catalog database type, including identifier
quoting, LIMIT query generation, scan table type propagation, and
Snowflake-specific type mapping.
- Add Snowflake JDBC catalog connection validation that requires dedicated
`snowflake.database` and `snowflake.warehouse` properties, and rejects `db` /
`database` / `warehouse` in `jdbc_url`.
- Add Snowflake OAuth token handling for FE connection tests and BE JDBC
scanner/writer Hikari data sources.
## Notes
- Snowflake maps as: Doris catalog -> Snowflake account + fixed database,
Doris database -> Snowflake schema, Doris table -> Snowflake table.
- No regression-test suite is added because real Snowflake validation
requires external account credentials, driver jar, and network access. Coverage
is added through focused FE/BE unit tests.
## Testing
- `mvn -Dmaven.build.cache.enabled=false -pl fe-connector/fe-connector-jdbc
-am
-Dtest=JdbcConnectorProviderValidateTest,JdbcDorisConnectorTest,JdbcDbTypeTest,JdbcIdentifierQuoterTest,JdbcQueryBuilderTest,JdbcScanRangeAndPropertiesTest,JdbcUrlNormalizerSnowflakeTest,JdbcSnowflakeConnectorClientTest
-DfailIfNoTests=false test`
- Tests run: 133, Failures: 0, Errors: 0, Skipped: 0
- `mvn -Dmaven.build.cache.enabled=false -pl be-java-extensions/jdbc-scanner
-am -Dtest=SnowflakeJdbcAuthUtilsTest -DfailIfNoTests=false test`
- Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]