You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Writing UTC timestamp to an iceberg table fails #2478
Writing UTC timestamp to an iceberg table fails in the arrow writer. A discussion was had in arrow-rs if the logic should live there to slacken this and the suggestion was to handle this in application code similar to what datafusion does for this exact problem.
ArrowError(
"Incompatible type. Field 'timestamp' has type Timestamp(µs, \"+00:00\"), array has type Timestamp(µs, \"UTC\")",
),
To Reproduce
No response
Expected behavior
Don't fail, these two types are identical semantically
Though I think it may be correct that down in the ParquetWriter we may not want to encode this logic, I do think it's pretty important that we fix this in the datafusion integration.
Though I think it may be correct that down in the ParquetWriter we may not want to encode this logic, I do think it's pretty important that we fix this in the datafusion integration.
I prefer to do it in query engine. If we do it in datafusion integration, we need to check the schema for every batch in the physical executor. But it we do it in query engine, it only needs to do it in planning phase, and insert a conversion executor node when necessary.
Activity
blackmwk commentedon Jun 18, 2026
See this comment: #2477 (review) I don't think we should do it in iceberg library.
xanderbailey commentedon Jul 15, 2026
Though I think it may be correct that down in the ParquetWriter we may not want to encode this logic, I do think it's pretty important that we fix this in the datafusion integration.
blackmwk commentedon Jul 17, 2026
I prefer to do it in query engine. If we do it in datafusion integration, we need to check the schema for every batch in the physical executor. But it we do it in query engine, it only needs to do it in planning phase, and insert a conversion executor node when necessary.