sbernauer commented on issue #5625:
URL: https://github.com/apache/iceberg/issues/5625#issuecomment-1276703232

   Hi  @dotjdk thanks for bringing this up!
   I'm running into the exact same issue (`days(timestamp) ASC NULLS FIRST is 
not currently supported`) while using the following pyspark structured 
streaming job.
   Spark 3.3.0, Iceberg 0.14.1
   ```
   from pyspark.sql import SparkSession
   
   spark = SparkSession.builder.appName("write-iceberg-table").getOrCreate()
   
   spark.sql("CREATE SCHEMA IF NOT EXISTS warehouse.bug LOCATION 
's3a://warehouse/bug/'")
   spark.sql("CREATE TABLE IF NOT EXISTS warehouse.bug.bug3 (timestamp 
timestamp, value bigint) USING iceberg PARTITIONED BY (days(timestamp))")
   
   df = spark \
     .readStream \
     .format("rate") \
     .load()
   
   query = df \
       .writeStream \
       .format("iceberg") \
       .outputMode("append") \
       .trigger(processingTime='2 minutes') \
       .option("path", "warehouse.bug.bug3") \
       .option("checkpointLocation", "s3a://warehouse/bug/bug3/checkpoints") \
       .start()
   
   query.awaitTermination()
   ```


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