[
https://issues.apache.org/jira/browse/ORC-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed ORC-527.
-----------------------------
> orc-tools cannot read files it creates itself
> ---------------------------------------------
>
> Key: ORC-527
> URL: https://issues.apache.org/jira/browse/ORC-527
> Project: ORC
> Issue Type: Bug
> Components: tools
> Affects Versions: 1.5.5, 1.6.0
> Reporter: Fabian Groffen
> Priority: Minor
>
> Same scenario as ORC-526.
> {{$ cat timestamp2.csv}}
> {{2019-01-01 00:00:00.0000}}
> {{2015-01-01 00:00:00.0001}}
> {{2015-01-01 00:00:00.0000}}
> {{2014-12-31 23:59:59.9999}}
> {{1970-01-01 00:00:00.0001}}
> {{1970-01-01 00:00:00.0000}}
> {{1969-12-31 23:59:59.9999}}
> {{1969-12-31 23:59:59.0001}}
> {{1969-12-31 23:59:59.0000}}
> {{1969-12-31 23:59:58.9999}}
> {{$ env TZ=UTC java -jar tools/target/orc-tools-1.6.0-SNAPSHOT-uber.jar
> convert --schema timestamp --timestampformat "yyyy-MM-dd HH:mm:ss.SSSS"
> timestamp2.csv -o timestamp2-tools16.orc}}
> {{$ java -jar tools/target/orc-tools-1.6.0-SNAPSHOT-uber.jar data
> timestamp2-tools16.orc }}
> {{log4j:WARN No appenders could be found for logger
> (org.apache.hadoop.util.Shell).}}
> {{log4j:WARN Please initialize the log4j system properly.}}
> {{log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.}}
> {{Processing data file timestamp2-tools16.orc [length: 207]}}
> {{Unable to dump data for file: timestamp2-tools16.orc}}
> {{org.codehaus.jettison.json.JSONException: Value out of sequence.}}
> {{ at
> org.codehaus.jettison.json.JSONWriter.append(JSONWriter.java:136)}}
> {{ at
> org.codehaus.jettison.json.JSONWriter.value(JSONWriter.java:323)}}
> {{ at org.apache.orc.tools.PrintData.printValue(PrintData.java:154)}}
> {{ at org.apache.orc.tools.PrintData.printRow(PrintData.java:192)}}
> {{ at
> org.apache.orc.tools.PrintData.printJsonData(PrintData.java:206)}}
> {{ at org.apache.orc.tools.PrintData.main(PrintData.java:241)}}
> {{ at org.apache.orc.tools.Driver.main(Driver.java:110)}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)