mirror of
https://github.com/apache/impala.git
synced 2026-01-07 00:02:28 -05:00
Impala qualifies all paths stored in the metastore except for the DataSource jar path. Use a qualified path here as well, which will allow datasources to live on the non-default FS. In CreateDataSrcStmt, use the post-analyzed qualified path rather than the user passed string. Then, fix CreateTableDataSrcStmt so that it doesn't strip out the scheme://authority portion of the URI, but instead uses the qualified path string directly. Note that the metastore may still contain unqualified paths in DataSource tables' properties that were generated by previous versions. That's okay though since the backend won't assume all paths are qualified in case other components generate (or have in the past) metadata with unqualified paths. Change-Id: I905d8f6a7bf1793cfccf720b6ab5dc845d7dd5fa Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5201 Reviewed-by: Daniel Hecht <dhecht@cloudera.com> Tested-by: jenkins (cherry picked from commit 86c75be01d0f5654291acdbc1c68f5a76915028c) Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5239
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
====
|
|
---- QUERY
|
|
# Test show data sources
|
|
show data sources
|
|
---- RESULTS: VERIFY_IS_SUBSET
|
|
'show_test_ds1','hdfs://localhost:20500/test-warehouse/data-sources/test-data-source.jar','com.cloudera.impala.extdatasource.AllTypesDataSource','V1'
|
|
'show_test_ds2','hdfs://localhost:20500/test-warehouse/data-sources/test-data-source.jar','com.cloudera.impala.extdatasource.AllTypesDataSource','V1'
|
|
---- LABELS
|
|
NAME, LOCATION, CLASS NAME, API VERSION
|
|
---- TYPES
|
|
STRING, STRING, STRING, STRING
|
|
====
|
|
---- QUERY
|
|
show data sources like 'show_test_ds*'
|
|
---- RESULTS
|
|
'show_test_ds1','hdfs://localhost:20500/test-warehouse/data-sources/test-data-source.jar','com.cloudera.impala.extdatasource.AllTypesDataSource','V1'
|
|
'show_test_ds2','hdfs://localhost:20500/test-warehouse/data-sources/test-data-source.jar','com.cloudera.impala.extdatasource.AllTypesDataSource','V1'
|
|
---- LABELS
|
|
NAME, LOCATION, CLASS NAME, API VERSION
|
|
---- TYPES
|
|
STRING, STRING, STRING, STRING
|
|
====
|
|
---- QUERY
|
|
show data sources like 'show_test_ds1'
|
|
---- RESULTS
|
|
'show_test_ds1','hdfs://localhost:20500/test-warehouse/data-sources/test-data-source.jar','com.cloudera.impala.extdatasource.AllTypesDataSource','V1'
|
|
---- LABELS
|
|
NAME, LOCATION, CLASS NAME, API VERSION
|
|
---- TYPES
|
|
STRING, STRING, STRING, STRING
|
|
====
|
|
---- QUERY
|
|
show data sources like 'not_a_data_src'
|
|
---- RESULTS
|
|
---- LABELS
|
|
NAME, LOCATION, CLASS NAME, API VERSION
|
|
---- TYPES
|
|
STRING, STRING, STRING, STRING
|
|
====
|