Files
impala/testdata/workloads/functional-query/queries/QueryTest/show-data-sources.test
Matthew Jacobs 89ec6b3d7a IMPALA-1033: Remove SOURCE keyword; very common identifier
The SOURCE keyword was introduced for DATA SOURCE ddl commands, but
it is also a very common identifier. This removes the SOURCE and
SOURCES keywords and instead uses DATASOURCE and DATASOURCES.

Change-Id: Ic6c2897d1e23efa169aa8787752fe4aa2bb125d5
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2895
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Tested-by: jenkins
(cherry picked from commit 267c13f9b46d249bfd1b8711fd3fadf6853dc1ef)
2014-06-09 17:17:14 -07:00

40 lines
1.3 KiB
Plaintext

====
---- QUERY
# Test show datasources
show datasources
---- RESULTS: VERIFY_IS_SUBSET
'show_test_ds1','/test-warehouse/data-sources/test-data-source.jar','com.cloudera.impala.extdatasource.AllTypesDataSource','V1'
'show_test_ds2','/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 datasources like 'show_test_ds*'
---- RESULTS
'show_test_ds1','/test-warehouse/data-sources/test-data-source.jar','com.cloudera.impala.extdatasource.AllTypesDataSource','V1'
'show_test_ds2','/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 datasources like 'show_test_ds1'
---- RESULTS
'show_test_ds1','/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 datasources like 'not_a_data_src'
---- RESULTS
---- LABELS
NAME, LOCATION, CLASS NAME, API VERSION
---- TYPES
STRING, STRING, STRING, STRING
====