Tarun Jangid has uploaded this change for review. ( http://gerrit.cloudera.org:8080/24634
Change subject: IMPALA-12889: Changing file format to AVRO doesn't update schema using 'avro.schema.url' ...................................................................... IMPALA-12889: Changing file format to AVRO doesn't update schema using 'avro.schema.url' When changing a table's file format to AVRO, the schema derived from avro.schema.url or avro.schema.literal was not picked up until an INVALIDATE METADATA or REFRESH was run. Fix this by setting reloadTableSchema=true in alterTableSetFileFormat so the schema is reloaded immediately after the file format change. Testing: Added test_avro_fileformat_change covering both non-partitioned and partitioned tables. Change-Id: I0aaf707fb2879b26518f8b6d532087f92d85dfcb --- M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java A testdata/workloads/functional-query/queries/QueryTest/avro-fileformat-change.test M testdata/workloads/functional-query/queries/QueryTest/avro-schema-changes.test M tests/query_test/test_avro_schema_resolution.py 4 files changed, 93 insertions(+), 77 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/34/24634/1 -- To view, visit http://gerrit.cloudera.org:8080/24634 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I0aaf707fb2879b26518f8b6d532087f92d85dfcb Gerrit-Change-Number: 24634 Gerrit-PatchSet: 1 Gerrit-Owner: Tarun Jangid <[email protected]>
