You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Csaba Ringhofer (JIRA)" <ji...@apache.org> on 2018/03/20 14:40:00 UTC
[jira] [Created] (IMPALA-6709) Simplify tests that copy local files
to tables
Csaba Ringhofer created IMPALA-6709:
---------------------------------------
Summary: Simplify tests that copy local files to tables
Key: IMPALA-6709
URL: https://issues.apache.org/jira/browse/IMPALA-6709
Project: IMPALA
Issue Type: Improvement
Components: Infrastructure
Reporter: Csaba Ringhofer
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 can 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)