brokenjacobs commented on issue #37110:
URL: https://github.com/apache/arrow/issues/37110#issuecomment-1675504639

   ```>>> dataset.schema.to_string
   <built-in method to_string of pyarrow.lib.Schema object at 0x12f357570>```
   
   But I think you wanted this:
   ```
   source_id: string
   site_id: string
   readout_time: timestamp[ms, tz=UTC]
   packet_counter: uint16
   roll: float
   pitch: float
   yaw: float
   acceleration_x: float
   acceleration_y: float
   acceleration_z: float
   free_acceleration_x: float
   free_acceleration_y: float
   free_acceleration_z: float
   gyroscope_x: float
   gyroscope_y: float
   gyroscope_z: float
   status_word: int32
   kafka_key: string
   kakfa_ts_type: uint8
   kafka_ts: timestamp[ms]
   kafka_partition: uint8
   kafka_offset: uint64
   kafka_topic: string
   ds: string
   ms: string
   -- schema metadata --
   parquet.avro.schema: '{"type": "record", "name": "mti300ahrs", "namespace' + 
3061
   writer.model.name: 'avro'
   ```
   
   or
   ```
   >>> dataset.schema.to_string()
   'source_id: string\nsite_id: string\nreadout_time: timestamp[ms, 
tz=UTC]\npacket_counter: uint16\nroll: float\npitch: float\nyaw: 
float\nacceleration_x: float\nacceleration_y: float\nacceleration_z: 
float\nfree_acceleration_x: float\nfree_acceleration_y: 
float\nfree_acceleration_z: float\ngyroscope_x: float\ngyroscope_y: 
float\ngyroscope_z: float\nstatus_word: int32\nkafka_key: 
string\nkakfa_ts_type: uint8\nkafka_ts: timestamp[ms]\nkafka_partition: 
uint8\nkafka_offset: uint64\nkafka_topic: string\nds: string\nms: string\n-- 
schema metadata --\nparquet.avro.schema: \'{"type": "record", "name": 
"mti300ahrs", "namespace\' + 3061\nwriter.model.name: \'avro\''```
   
   The code that created this file set the timezone in the schema.


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