AbinayaJayaprakasam commented on PR #53221:
URL: https://github.com/apache/spark/pull/53221#issuecomment-3649684280
> what's the behavior of schema inference? do you infer parquet
TIMESTAMP(NANOS,false) as Spark long type?
Thanks @cloud-fan for reviewing . Yes, TIMESTAMP(NANOS,false) is inferred
as LongType.
```
scala> val df = spark.read.parquet("test_nanos_timestamp.parquet")
val df: org.apache.spark.sql.DataFrame = [id: int, timestamp_nanos: bigint]
scala> df.printSchema()
root
|-- id: integer (nullable = true)
|-- timestamp_nanos: long (nullable = true)
```
--
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]