haivvreo icon indicating copy to clipboard operation
haivvreo copied to clipboard

Strange behavior when schema.url cannot be found

Open cwsteinbach opened this issue 12 years ago • 2 comments

hive>  CREATE TABLE test_avro
    >  ROW FORMAT SERDE
    >  'com.linkedin.haivvreo.AvroSerDe'
    >  WITH SERDEPROPERTIES (
    >    'schema.url'='hdfs://localhost:8020/user/training/test.avsc')
    >  STORED as INPUTFORMAT
    >  'com.linkedin.haivvreo.AvroContainerInputFormat'
    >  OUTPUTFORMAT
    >  'com.linkedin.haivvreo.AvroContainerOutputFormat';
OK
hive> describe test_avro;
OK
error_error_error_error_error_error_error   string  from deserializer
cannot_determine_schema string  from deserializer
check   string  from deserializer
schema  string  from deserializer
url string  from deserializer
and string  from deserializer
literal string  from deserializer
Time taken: 0.062 seconds
hive> drop table 'test_avro';

cwsteinbach avatar May 15 '12 23:05 cwsteinbach

yeah, that's expected. Back in Hive 7, it was expected that initialize would return successfully. Throwing an exception left the table in a state where you couldn't change the table (fix it via alter table). This was our way of saying something way wrong but leaving the table in a state where it could be fixed. In Hive 8, I believe the behavior was changed so the init could throw an exception correctly (I think I did that patch...), but Haivvreo hasn't been updated yet.

jghoman avatar May 15 '12 23:05 jghoman

@cwsteinbach Anything left to do here, or can I close this ticket?

jghoman avatar Jun 02 '12 00:06 jghoman