You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that using logical type int{8,16,32} cause java.lang.IllegalStateException: INTEGER(32,true) can only annotate INT32 error.
I think that this plugin have set primitive type to INT64 where it had to be set the type to INT32.
org.embulk.exec.PartialExecutionException: java.lang.IllegalStateException: INTEGER(32,true) can only annotate INT32
at org.embulk.exec.BulkLoader$LoaderState.buildPartialExecuteException(BulkLoader.java:340)
at org.embulk.exec.BulkLoader.doRun(BulkLoader.java:566)
at org.embulk.exec.BulkLoader.access$000(BulkLoader.java:35)
at org.embulk.exec.BulkLoader$1.run(BulkLoader.java:353)
at org.embulk.exec.BulkLoader$1.run(BulkLoader.java:350)
at org.embulk.spi.Exec.doWith(Exec.java:22)
at org.embulk.exec.BulkLoader.run(BulkLoader.java:350)
at org.embulk.EmbulkEmbed.run(EmbulkEmbed.java:242)
at org.embulk.EmbulkRunner.runInternal(EmbulkRunner.java:291)
at org.embulk.EmbulkRunner.run(EmbulkRunner.java:155)
at org.embulk.cli.EmbulkRun.runSubcommand(EmbulkRun.java:431)
at org.embulk.cli.EmbulkRun.run(EmbulkRun.java:90)
at org.embulk.cli.Main.main(Main.java:64)
Caused by: java.lang.IllegalStateException: INTEGER(32,true) can only annotate INT32
at org.apache.parquet.Preconditions.checkState(Preconditions.java:89)
at org.apache.parquet.schema.Types$BasePrimitiveBuilder$1.checkInt32PrimitiveType(Types.java:567)
at org.apache.parquet.schema.Types$BasePrimitiveBuilder$1.visit(Types.java:526)
at org.apache.parquet.schema.LogicalTypeAnnotation$IntLogicalTypeAnnotation.accept(LogicalTypeAnnotation.java:739)
at org.apache.parquet.schema.Types$BasePrimitiveBuilder.build(Types.java:445)
at org.apache.parquet.schema.Types$BasePrimitiveBuilder.build(Types.java:336)
at org.apache.parquet.schema.Types$Builder.named(Types.java:314)
at org.embulk.output.s3_parquet.parquet.IntLogicalTypeHandler.newSchemaFieldType(LogicalTypeHandler.scala:35)
at org.embulk.output.s3_parquet.parquet.EmbulkMessageType$EmbulkMessageTypeColumnVisitor.addTypeByLogicalTypeHandlerOrDefault(EmbulkMessageType.scala:58)
at org.embulk.output.s3_parquet.parquet.EmbulkMessageType$EmbulkMessageTypeColumnVisitor.longColumn(EmbulkMessageType.scala:76)
at org.embulk.spi.Column.visit(Column.java:48)
at org.embulk.spi.Schema.visitColumns(Schema.java:68)
at org.embulk.output.s3_parquet.parquet.EmbulkMessageType$Builder.build(EmbulkMessageType.scala:38)
at org.embulk.output.s3_parquet.parquet.ParquetFileWriteSupport.init(ParquetFileWriteSupport.scala:25)
at org.apache.parquet.hadoop.ParquetWriter.<init>(ParquetWriter.java:277)
at org.apache.parquet.hadoop.ParquetWriter$Builder.build(ParquetWriter.java:569)
at org.embulk.output.s3_parquet.S3ParquetOutputPlugin.$anonfun$open$1(S3ParquetOutputPlugin.scala:331)
at org.embulk.output.s3_parquet.ContextClassLoaderSwapper$.using(ContextClassLoaderSwapper.scala:11)
at org.embulk.output.s3_parquet.ContextClassLoaderSwapper$.usingPluginClass(ContextClassLoaderSwapper.scala:16)
at org.embulk.output.s3_parquet.S3ParquetOutputPlugin.open(S3ParquetOutputPlugin.scala:332)
at org.embulk.spi.util.Executors.process(Executors.java:51)
at org.embulk.spi.util.Executors.process(Executors.java:38)
at org.embulk.exec.LocalExecutorPlugin$DirectExecutor$1.call(LocalExecutorPlugin.java:170)
at org.embulk.exec.LocalExecutorPlugin$DirectExecutor$1.call(LocalExecutorPlugin.java:167)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: java.lang.IllegalStateException: INTEGER(32,true) can only annotate INT32
... 28 more
Error: java.lang.IllegalStateException: INTEGER(32,true) can only annotate INT32
The text was updated successfully, but these errors were encountered:
Hi,
I found that using logical type int{8,16,32} cause
java.lang.IllegalStateException: INTEGER(32,true) can only annotate INT32
error.I think that this plugin have set primitive type to INT64 where it had to be set the type to INT32.
https://github.com/apache/parquet-mr/blob/master/parquet-column/src/main/java/org/apache/parquet/schema/Types.java#L520-L527
My sample config is below:
Error detail:
The text was updated successfully, but these errors were encountered: