Charles Pritchard created HIVE-6126:
---------------------------------------
Summary: Avro schemas with hyphens are unsupported
Key: HIVE-6126
URL: https://issues.apache.org/jira/browse/HIVE-6126
Project: Hive
Issue Type: Bug
Reporter: Charles Pritchard
Using an avro schema with an unsupported field name will lead to a silent error
upon executing create table.
Example:
CREATE TABLE embedded
COMMENT "just drop the schema right into the HQL"
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.avro.AvroSerDe'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'
TBLPROPERTIES (
'avro.schema.literal'='{
"namespace": "com.howdy",
"name": "some_schema",
"type": "record",
"fields": [ { "name":"string-1","type":"string"}]
}');
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)