diff --git ql/src/test/queries/clientnegative/file_with_header_footer_negative.q ql/src/test/queries/clientnegative/file_with_header_footer_negative.q index 286cf1a..1f63d94 100644 --- ql/src/test/queries/clientnegative/file_with_header_footer_negative.q +++ ql/src/test/queries/clientnegative/file_with_header_footer_negative.q @@ -1,8 +1,8 @@ dfs ${system:test.dfs.mkdir} hdfs:///tmp/test_file_with_header_footer_negative/; -dfs -copyFromLocal ../data/files/header_footer_table_1 hdfs:///tmp/test_file_with_header_footer_negative/header_footer_table_1; +dfs -copyFromLocal ../../data/files/header_footer_table_1 hdfs:///tmp/test_file_with_header_footer_negative/header_footer_table_1; -dfs -copyFromLocal ../data/files/header_footer_table_2 hdfs:///tmp/test_file_with_header_footer_negative/header_footer_table_2; +dfs -copyFromLocal ../../data/files/header_footer_table_2 hdfs:///tmp/test_file_with_header_footer_negative/header_footer_table_2; CREATE EXTERNAL TABLE header_footer_table_1 (name string, message string, id int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' LOCATION 'hdfs:///tmp/test_file_with_header_footer_negative/header_footer_table_1' tblproperties ("skip.header.line.count"="1", "skip.footer.line.count"="200"); @@ -10,4 +10,4 @@ SELECT * FROM header_footer_table_1; DROP TABLE header_footer_table_1; -dfs -rmr hdfs:///tmp/test_file_with_header_footer_negative; \ No newline at end of file +dfs -rmr hdfs:///tmp/test_file_with_header_footer_negative; diff --git ql/src/test/results/clientnegative/file_with_header_footer_negative.q.out ql/src/test/results/clientnegative/file_with_header_footer_negative.q.out index d888153..fa261b3 100644 --- ql/src/test/results/clientnegative/file_with_header_footer_negative.q.out +++ ql/src/test/results/clientnegative/file_with_header_footer_negative.q.out @@ -1,2 +1,14 @@ -Command failed with exit code = -1 -Query returned non-zero code: -1, cause: null +#### A masked pattern was here #### +PREHOOK: type: CREATETABLE +#### A masked pattern was here #### +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: default@header_footer_table_1 +PREHOOK: query: SELECT * FROM header_footer_table_1 +PREHOOK: type: QUERY +PREHOOK: Input: default@header_footer_table_1 +#### A masked pattern was here #### +POSTHOOK: query: SELECT * FROM header_footer_table_1 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@header_footer_table_1 +#### A masked pattern was here #### +Failed with exception java.io.IOException:java.io.IOException: footer number exceeds the limit defined in hive.file.max.footer