mirror of
https://github.com/apache/impala.git
synced 2026-01-02 03:00:32 -05:00
The SHOW DATA SOURCE tests were run as part of the other SHOW * tests in test_show(), but the setup/cleanup for data sources can't be run in parallel. This change moves the SHOW DATA SOURCE tests into a separate test method and the setup/cleanup code is only run for this test (i.e. not using setup_method() and teardown_method()). The test is then only executed serially. Change-Id: I221145f49cfe7290e132c6a87a5295b747c1fcc7 Reviewed-on: http://gerrit.ent.cloudera.com:8080/2864 Reviewed-by: Matthew Jacobs <mj@cloudera.com> Tested-by: jenkins (cherry picked from commit 5bcd769eae3a694d7f6f42d093f9197e8a4e8b77) Reviewed-on: http://gerrit.ent.cloudera.com:8080/2870
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
====
|
|
---- QUERY
|
|
# Test show data sources
|
|
show data sources
|
|
---- 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 data sources 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 data sources 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 data sources like 'not_a_data_src'
|
|
---- RESULTS
|
|
---- LABELS
|
|
NAME, LOCATION, CLASS NAME, API VERSION
|
|
---- TYPES
|
|
STRING, STRING, STRING, STRING
|
|
====
|