asfimport opened a new issue, #32766:
URL: https://github.com/apache/arrow/issues/32766
pyarrow.parquet.write_table used for write Parquet file
In parquet schema missed logical type for TIME, it’s just long type
PyArrow Schema
```java
NUMBER: int64
DECIMAL: int64
NUMERIC: int64
INT: int64
FLOAT: double
VARCHAR: string
TEXT: string
CHAR: string
BOOLEAN: bool
ARR: string
VAR: string
OBJ: string
TIMESTAMP: timestamp[ns]
DATE: date64[ms]
TIME: time64[ns]
PK: int64
UUID: binary
UUID2: string
UUID3: string
```
Parquet schema
```java
{
"type" : "record",
"name" : "schema",
"fields" : [ {
"name" : "NUMBER",
"type" : [ "null", "long" ],
"default" : null
}, {
"name" : "DECIMAL",
"type" : [ "null", "long" ],
"default" : null
}, {
"name" : "NUMERIC",
"type" : [ "null", "long" ],
"default" : null
}, {
"name" : "INT",
"type" : [ "null", "long" ],
"default" : null
}, {
"name" : "FLOAT",
"type" : [ "null", "double" ],
"default" : null
}, {
"name" : "VARCHAR",
"type" : [ "null", "string" ],
"default" : null
}, {
"name" : "TEXT",
"type" : [ "null", "string" ],
"default" : null
}, {
"name" : "CHAR",
"type" : [ "null", "string" ],
"default" : null
}, {
"name" : "BOOLEAN",
"type" : [ "null", "boolean" ],
"default" : null
}, {
"name" : "ARR",
"type" : [ "null", "string" ],
"default" : null
}, {
"name" : "VAR",
"type" : [ "null", "string" ],
"default" : null
}, {
"name" : "OBJ",
"type" : [ "null", "string" ],
"default" : null
}, {
"name" : "TIMESTAMP",
"type" : [ "null", {
"type" : "long",
"logicalType" : "timestamp-micros"
} ],
"default" : null
}, {
"name" : "DATE",
"type" : [ "null", {
"type" : "int",
"logicalType" : "date"
} ],
"default" : null
}, {
"name" : "TIME",
"type" : [ "null", "long" ],
"default" : null
}, {
"name" : "PK",
"type" : [ "null", "long" ],
"default" : null
}, {
"name" : "UUID",
"type" : [ "null", "bytes" ],
"default" : null
}, {
"name" : "UUID2",
"type" : [ "null", "string" ],
"default" : null
}, {
"name" : "UUID3",
"type" : [ "null", "string" ],
"default" : null
} ]
}
```
**Reporter**: [Vadim Goy](https://issues.apache.org/jira/browse/ARROW-17506)
**Assignee**: [Quang
Hoang](https://issues.apache.org/jira/browse/ARROW-17506) / @quanghgx
<sub>**Note**: *This issue was originally created as
[ARROW-17506](https://issues.apache.org/jira/browse/ARROW-17506). Please see
the [migration documentation](https://github.com/apache/arrow/issues/14542) for
further details.*</sub>
--
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]