[ 
https://issues.apache.org/jira/browse/ATLAS-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128371#comment-15128371
 ] 

Aaron Dossett commented on ATLAS-409:
-------------------------------------

[~yhemanth][~shwethags] Thanks for looking at this, sorry I have not gotten 
back to test case.  I was probably never describing the original problem 
correctly.  I thought it was an issue with table columns, but it was really an 
issue with storage descriptor columns.  I did experiment with creating a test 
case, but couldn't reproduce it either.  I was testing with Hive 0.14.  I will 
test with Hive 1.2.1 once our non-prod environments are upgraded.

> Atlas will not import avro tables with schema read from a file
> --------------------------------------------------------------
>
>                 Key: ATLAS-409
>                 URL: https://issues.apache.org/jira/browse/ATLAS-409
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Aaron Dossett
>            Assignee: Aaron Dossett
>             Fix For: trunk
>
>         Attachments: ATLAS-409-2.patch, ATLAS-409-3.patch, ATLAS-409.patch, 
> example.ddl, foo.avsc, hive-avro-entity.json
>
>
> Atlas won't import a Hive table with no columns (see below for an example of 
> a valid hive table with no explicit columns).  This is because the Atlas Hive 
> Storage Descriptor class REQUIRES columns, but the Hive Table class allows 
> them to be OPTIONAL.
> {code}
> CREATE TABLE example
>   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.url'='file:///path/to/the/schema/test_serializer.avsc');
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to