batyrchary opened a new issue, #695:
URL: https://github.com/apache/iceberg-go/issues/695

   ### Feature Request / Improvement
   
   I’m trying to write Arrow records into an Iceberg table.
   
   In my Arrow records, start_time_unix_nano and time_unix_nano are in 
nanoseconds. I defined the Iceberg schema like this:
   
   ```
        schema := iceberg.NewSchemaWithIdentifiers(
                1,        // schema-id
                []int{1}, // identifier fields: id
                iceberg.NestedField{ID: 1, Name: "id", Type: 
iceberg.PrimitiveTypes.Int64, Required: true},
                iceberg.NestedField{ID: 2, Name: "parent_id", Type: 
iceberg.PrimitiveTypes.Int32, Required: true},
                //iceberg.NestedField{ID: 3, Name: "start_time_unix_nano", 
Type: iceberg.PrimitiveTypes.TimestampTz, Required: true}, // microsecond 
precision
                iceberg.NestedField{ID: 3, Name: "start_time_unix_nano", Type: 
iceberg.PrimitiveTypes.TimestampNs, Required: true}, // nanosecond precision
                iceberg.NestedField{ID: 4, Name: "time_unix_nano", Type: 
iceberg.PrimitiveTypes.TimestampNs, Required: true},       // nanosecond 
precision
                iceberg.NestedField{ID: 5, Name: "int_value", Type: 
iceberg.PrimitiveTypes.Int64, Required: false},
                iceberg.NestedField{ID: 6, Name: "double_value", Type: 
iceberg.PrimitiveTypes.Float64, Required: false},
                iceberg.NestedField{ID: 7, Name: "flags", Type: 
iceberg.PrimitiveTypes.Int64, Required: false},
        )
   ```
   
   However, I get this error:
   
   `"error":"error encountered during file writing: error encountered during 
arrow schema visitor: type error: 'ns' timestamp precision not supported"`
   
   Does this mean TimestampNs is not fully supported yet, or am I missing 
something?


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to