Hello,

I am Ravi Tatapudi, from IBM-India. I am working on a simple tool, that 
writes data to ORC-file. I am new to "ORC/hive world" & I have prepared my 
test-application, primarily based on the example-code at:
https://github.com/cloudera/hive/blob/cdh5.4.0-release/ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFile.java#L487-L508

I see that, I am able to write the data successfully to ORC-file, when the 
column-definition is hard-coded in the class (orcw.java.sample1). However, 
when I defined an array of obejcts & assign the values at run-time 
(orcw.java.sample2), I see that, data is not written to the ORC-file.

Pl. find attached sample-programs:

 

Could you please see the same & provide your inputs on why 
"orcw.java.sample2" is not writing data ?

Thanks,
 Ravi

Attachment: orcw.java.sample1
Description: Binary data

Attachment: orcw.java.sample2
Description: Binary data

Reply via email to