rok commented on PR #14472:
URL: https://github.com/apache/arrow/pull/14472#issuecomment-1304761631

   @jonathanswenson the new jars now build for an issue I've been having. I've 
tried your example:
   ```
   import org.apache.arrow.memory.RootAllocator;
   import org.apache.arrow.vector.types.pojo.Field;
   import org.apache.arrow.vector.types.pojo.FieldType;
   import org.apache.arrow.vector.types.pojo.ArrowType;
   import java.util.ArrayList;
   import java.util.List;
   import org.apache.arrow.c.ArrowSchema;
   import org.apache.arrow.c.Data;
   import org.apache.arrow.vector.types.pojo.Schema;
   
   public class TestDataset {
   
     public static void main(String[] args) {
       RootAllocator allocator = new RootAllocator();
       Field field = new Field("int_field", FieldType.nullable(new 
ArrowType.Int(32, true)), null);
   
       List<Field> fieldList = new ArrayList<>();
       fieldList.add(field);
   
       Schema schema = new Schema(fieldList, null);
       ArrowSchema cSchema = ArrowSchema.allocateNew(allocator);
       Data.exportSchema(allocator, schema, null, cSchema);
     }
   }
   ```
   
   ```
   10:53:07.283 [main] DEBUG 
org.apache.arrow.memory.rounding.DefaultRoundingPolicy - 
-Dorg.apache.memory.allocator.maxOrder: 11
   Exception in thread "main" java.lang.VerifyError: Bad type on operand stack
   Exception Details:
     Location:
       
org/apache/arrow/vector/types/pojo/ArrowType.getInt(Lorg/apache/arrow/flatbuf/Field;)Lorg/apache/arrow/vector/types/pojo/ArrowType$Int;
 @8: invokevirtual
     Reason:
       Type 'org/apache/arrow/flatbuf/Int' (current frame, stack[1]) is not 
assignable to 'com/google/flatbuffers/Table'
     Current Frame:
       bci: @8
       flags: { }
       locals: { 'org/apache/arrow/flatbuf/Field' }
       stack: { 'org/apache/arrow/flatbuf/Field', 
'org/apache/arrow/flatbuf/Int' }
     Bytecode:
       0000000: 2abb 0026 59b7 0027 b600 05c0 0026 4cbb
       0000010: 002a 592b b600 282b b600 29b7 002b b0  
   
        at TestDataset.main(TestDataset.java:15)
   ```
   
   I downloaded and imported:
   ```
   arrow-algorithm-11.0.0-SNAPSHOT.jar
   arrow-c-data-11.0.0-SNAPSHOT.jar
   arrow-dataset-11.0.0-SNAPSHOT.jar
   arrow-memory-core-11.0.0-SNAPSHOT.jar
   arrow-memory-netty-11.0.0-SNAPSHOT.jar
   arrow-tools-11.0.0-SNAPSHOT-jar-with-dependencies.jar
   arrow-tools-11.0.0-SNAPSHOT.jar
   arrow-vector-11.0.0-SNAPSHOT-shade-format-flatbuffers.jar
   arrow-vector-11.0.0-SNAPSHOT.jar
   ```
   
   But I don't think you need all of these.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to