jinchengchenghh opened a new issue, #14348:
URL: https://github.com/apache/iceberg/issues/14348

   ### Apache Iceberg version
   
   None
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   The [document](https://iceberg.apache.org/spec/#partition-transforms) says 
it returns int, but the 
[code](https://github.com/apache/iceberg/blob/main/spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/functions/DaysFunction.java#L71)
 really returns date and the sql result is also date. May need to update the 
document.
   ```
   
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   |staticinvoke(class 
org.apache.iceberg.spark.functions.DaysFunction$TimestampToDaysFunction, 
DateType, invoke, 1969-12-31 18:59:58.999999, TimestampType, false, true, true)|
   
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   |                                                                            
                                                                                
     1969-12-31|
   
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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