You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/07/22 07:08:24 UTC

[GitHub] [iceberg] southernriver opened a new pull request, #5335: Ignore case for partition transform

southernriver opened a new pull request, #5335:
URL: https://github.com/apache/iceberg/pull/5335

   Transform is not supported for upper case, otherwise throw SQLException as follow:
   ```
   java.sql.SQLException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.UnsupportedOperationException: Transform is not supported: HOURS(timestamp_)
   at org.apache.iceberg.spark.Spark3Util.toPartitionSpec(Spark3Util.java:423)
   at org.apache.iceberg.spark.SparkCatalog.createTable(SparkCatalog.java:156)
   at org.apache.iceberg.spark.SparkCatalog.createTable(SparkCatalog.java:98)
   at org.apache.iceberg.spark.SparkSessionCatalog.createTable(SparkSessionCatalog.java:139)
   at org.apache.spark.sql.execution.datasources.v2.CreateTableExec.run(CreateTableExec.scala:41)
   ```
   
   Since Spark side never check upper or lower case and SQL parse is ok,  we could ignore case for iceberg side.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] rdblue commented on pull request #5335: Ignore case for partition transform

Posted by GitBox <gi...@apache.org>.
rdblue commented on PR #5335:
URL: https://github.com/apache/iceberg/pull/5335#issuecomment-1192785484

   Thanks, @southernriver! Good catch.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] rdblue merged pull request #5335: Ignore case for partition transform

Posted by GitBox <gi...@apache.org>.
rdblue merged PR #5335:
URL: https://github.com/apache/iceberg/pull/5335


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org