Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
ghx-label-9
Description
tests/query_test/ contains several tests that use "hdfs dfs -copyFromLocal" to fill tables with files that cannot be created with Impala. The current way of doing this looks like "copy paste" and adds unnecessary complexity to the test code. The common pattern of "create a table, copy 1-2 files to it" could be covered by a single function, or could be moved to the .test files, which support SHELL sections.
for an example of SHELL section, see
https://github.com/apache/impala/blob/8dde41e802e3566d07e2db7b2bf5cd76030ab3d3/testdata/workloads/functional-query/queries/QueryTest/parquet-resolution-by-name.test#L75