rdblue commented on issue #483: Conversions#fromPartitionString() could not 
convert String of timestamp-like format to Integer
URL: 
https://github.com/apache/incubator-iceberg/issues/483#issuecomment-533239111
 
 
   @chenjunjiedada, the format here is what Iceberg produces for an hour 
partition value. Iceberg internally stores the values as the number of hours 
from 1970-01-01 hour 0, but that's not user-friendly. So it gets converted to 
YYYY-MM-DD-HH in the partition path.
   
   The problem is that Iceberg does not _parse_ these values because creating a 
file path is a one-way conversion. To delete these files, you can pass the file 
path directly to `DeleteFiles`, or you can get a `DataFile` instance from 
`FindFiles` and pass that.
   
   You could also come up with a way to parse these hour values, but we don't 
recommend doing this in general because of string escaping issues. That's why 
Iceberg considers the conversion one-way.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to