mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
This test had a hardcoded HDFS path which caused a failure on all non-HDFS runs. This change simply makes the path filesystem agnostic. Change-Id: I31e5955893f2c0d967ce6f0cab653d1020ee45b3 Reviewed-on: http://gerrit.cloudera.org:8080/3174 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins
37 lines
834 B
Plaintext
37 lines
834 B
Plaintext
====
|
|
---- QUERY
|
|
CREATE EXTERNAL TABLE alltypesagg_staleschema (
|
|
id INT,
|
|
bool_col BOOLEAN,
|
|
tinyint_col INT,
|
|
smallint_col INT,
|
|
int_col INT,
|
|
bigint_col BIGINT,
|
|
float_col FLOAT,
|
|
double_col DOUBLE,
|
|
date_string_col STRING,
|
|
string_col STRING,
|
|
timestamp_col STRING
|
|
)
|
|
LOCATION '/test-warehouse/alltypesaggmultifilesnopart_avro_snap'
|
|
TBLPROPERTIES ('avro.schema.url'= '/test-warehouse/avro_schemas/functional/alltypesaggmultifilesnopart.json')
|
|
====
|
|
---- QUERY
|
|
alter table alltypesagg_staleschema set fileformat avro
|
|
====
|
|
---- QUERY
|
|
select count(*) from alltypesagg_staleschema
|
|
---- CATCH
|
|
Missing Avro schema in scan node. This could be due to stale metadata.
|
|
====
|
|
---- QUERY
|
|
invalidate metadata alltypesagg_staleschema
|
|
====
|
|
---- QUERY
|
|
select count(*) from alltypesagg_staleschema
|
|
---- RESULTS
|
|
11000
|
|
---- TYPES
|
|
bigint
|
|
====
|