atifiu commented on issue #4363:
URL: https://github.com/apache/iceberg/issues/4363#issuecomment-1713236940
@aajisaka I am trying to use date function on partitionedBy clause to match
with my table partitioning but its throwing error. I am using Spark 3.3.1 and
Apache Iceberg 1.3.0
```
df.writeTo("schema1.table_name1").partitionedBy("date(page_view_dtm)", "id",
"v_num").append()
File "/app/spark3.3.1/python/lib/pyspark.zip/pyspark/sql/readwriter.py",
line 1420, in partitionedBy
File
"/app/spark3.3.1/python/lib/py4j-0.10.9.5-src.zip/py4j/java_gateway.py", line
1322, in __call__
File "/app/spark3.3.1/python/lib/pyspark.zip/pyspark/sql/utils.py", line
196, in deco
pyspark.sql.utils.ParseException:
Syntax error at or near '('(line 1, pos 4)
== SQL ==
date(page_view_dtm)
----^^^
```
--
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]