Iskander14yo commented on issue #2035:
URL:
https://github.com/apache/datafusion-comet/issues/2035#issuecomment-3104690263
@parthchandra `query.py` in the original PR contains the whole SparkSession
configuration. Here you can see following:
```python
df = spark.read.parquet("hits.parquet")
# Do casting before creating the view so no need to change to unreadable
integer dates in SQL
df = df.withColumn("EventTime", F.col("EventTime").cast("timestamp"))
df = df.withColumn("EventDate", F.date_add(F.lit("1970-01-01"),
F.col("EventDate")))
df.createOrReplaceTempView("hits")
```
--
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]