You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Luis López <lu...@teia.mx> on 2019/01/17 23:16:30 UTC

TimestampColumnVector, java.lang.NoSuchFieldError: TIMESTAMP

Hello,

I am working with versions 1.5.4 of orc-core and orc-tools and I'm facing the error java.lang.NoSuchFieldError: TIMESTAMP when using createRowBatch() from TypeDescription.
Types in schema are as follows:
[cid:image002.png@01D4AE84.4F28D860]
When reaching timestamp, In class TimestampColumnVector line 75, super(Type.TIMESTAMP, len); , Type is missing Timestamp option from its elements

Error shows as follows:
An exception or error caused a run to abort: TIMESTAMP
java.lang.NoSuchFieldError: TIMESTAMP
                at org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector.<init>(TimestampColumnVector.java:75)
                at org.apache.orc.TypeDescription.createColumn(TypeDescription.java:639)
                at org.apache.orc.TypeDescription.createRowBatch(TypeDescription.java:696)
                at org.apache.orc.TypeDescription.createRowBatch(TypeDescription.java:730)
                at sat.gob.projects.ClaseDocumentoORC.escribirORC(ClaseDocumentoORC.scala:75)
                at ORCTests.<init>(ORCTests.scala:28)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                at java.lang.Class.newInstance(Class.java:442)
                at org.scalatest.tools.Runner$.genSuiteConfig(Runner.scala:1439)
                at org.scalatest.tools.Runner$$anonfun$31.apply(Runner.scala:1253)
                at org.scalatest.tools.Runner$$anonfun$31.apply(Runner.scala:1252)
                at scala.collection.immutable.List.map(List.scala:273)
                at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1252)
                at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1028)
                at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1027)
                at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1517)
                at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1027)
                at org.scalatest.tools.Runner$.run(Runner.scala:855)
                at org.scalatest.tools.Runner.run(Runner.scala)
                at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:131)
                at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:67)

I would like to know if I'm missing additional actions before adding a timestamp type to the schema

Thank you in advance