You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "unical1988 (via GitHub)" <gi...@apache.org> on 2025/09/10 20:40:22 UTC

[I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

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

   ### Apache Iceberg version
   
   1.4.2
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   Is there a known issue Under Spark 3.4.2, where writing a timestamp column as follows:
   
   ```
   DataTypes.createStructField(
                     "timestamp",
                     DataTypes.TimestampType,
                     false,
                     new MetadataBuilder().putString("precision", "millis").build()) 
   ```
   
   Using this Spark config:
   
   `sparkConf.set("spark.sql.parquet.outputTimestampType", "TIMESTAMP_MILLIS")`
   
   causes issues with Icerberg column Type? I am getting an error in my code as follows: 
   
   java.lang.ClassCastException: class org.apache.iceberg.shaded.org.apache.arrow.vector.TimeStampMicroTZVector cannot be cast to class org.apache.iceberg.shaded.org.apache.arrow.vector.BigIntVector (org.apache.iceberg.shaded.org.apache.arrow.vector.TimeStampMicroTZVector and org.apache.iceberg.shaded.org.apache.arrow.vector.BigIntVector are in unnamed module of loader 'app')
   
   Would anyone here know about this timestamp issue?
   
   
   ### Willingness to contribute
   
   - [ ] 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: issues-unsubscribe@iceberg.apache.org.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


Re: [I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

Posted by "sapienza88 (via GitHub)" <gi...@apache.org>.
sapienza88 commented on issue #14046:
URL: https://github.com/apache/iceberg/issues/14046#issuecomment-3939040586

   @RussellSpitzer please delete your comment it is referencing my old account (https://github.com/apache/iceberg/issues/14046#issuecomment-3281373462) you shouldn't have quoted my question to reply. THanks.


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


Re: [I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

Posted by "unical1988 (via GitHub)" <gi...@apache.org>.
unical1988 closed issue #14046: Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector
URL: https://github.com/apache/iceberg/issues/14046


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


Re: [I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on issue #14046:
URL: https://github.com/apache/iceberg/issues/14046#issuecomment-3939073696

   I'm not sure what you are asking, there isn't any quote in the comment 


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


Re: [I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on issue #14046:
URL: https://github.com/apache/iceberg/issues/14046#issuecomment-3281373462

   Iceberg shouldn't be using any of the properties named spark.sql.parquet,
   so ....that shouldn't be related. It may be helpful to see the rest of your
   code?
   
   On Wed, Sep 10, 2025 at 3:40 PM Selim Soufargi ***@***.***>
   wrote:
   
   > *unical1988* created an issue (apache/iceberg#14046)
   > <https://github.com/apache/iceberg/issues/14046>
   > Apache Iceberg version
   >
   > 1.4.2
   > Query engine
   >
   > Spark
   > Please describe the bug 🐞
   >
   > Is there a known issue Under Spark 3.4.2, where writing a timestamp column
   > as follows:
   >
   > DataTypes.createStructField(
   >                   "timestamp",
   >                   DataTypes.TimestampType,
   >                   false,
   >                   new MetadataBuilder().putString("precision", "millis").build())
   >
   > Using this Spark config:
   >
   > sparkConf.set("spark.sql.parquet.outputTimestampType", "TIMESTAMP_MILLIS")
   >
   > causes issues with Icerberg column Type? I am getting an error in my code
   > as follows:
   >
   > java.lang.ClassCastException: class
   > org.apache.iceberg.shaded.org.apache.arrow.vector.TimeStampMicroTZVector
   > cannot be cast to class
   > org.apache.iceberg.shaded.org.apache.arrow.vector.BigIntVector
   > (org.apache.iceberg.shaded.org.apache.arrow.vector.TimeStampMicroTZVector
   > and org.apache.iceberg.shaded.org.apache.arrow.vector.BigIntVector are in
   > unnamed module of loader 'app')
   >
   > Would anyone here know about this timestamp issue?
   > Willingness to contribute
   >
   >    - 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
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/iceberg/issues/14046>, or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AADE2YNGJ5GHQSWXVOIDSND3SCEEVAVCNFSM6AAAAACGFPQSYSVHI2DSMVQWIX3LMV43ASLTON2WKOZTGQYDGOBXG43TEMY>
   > .
   > You are receiving this because you are subscribed to this thread.Message
   > ID: ***@***.***>
   >
   


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


Re: [I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

Posted by "ayingsf (via GitHub)" <gi...@apache.org>.
ayingsf commented on issue #14046:
URL: https://github.com/apache/iceberg/issues/14046#issuecomment-3331102572

   Hi @unical1988 how were you able to resolve this issue? 


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


Re: [I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

Posted by "sapienza88 (via GitHub)" <gi...@apache.org>.
sapienza88 commented on issue #14046:
URL: https://github.com/apache/iceberg/issues/14046#issuecomment-3939080203

   > I'm not sure what you are asking, there isn't any quote in the comment
   
   @RussellSpitzer your comment has ... that you can click that shows: On Wed, Sep 10, 2025 at 3:40 PM Selim Soufargi ***@***.***> wrote:
   I want that line deleted, to do so you have to delete all your comment or edit it to keep only your question: 


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


Re: [I] Spark's TimeStamp dataType being written as TimeStampMicroTZVector and read as BigIntVector [iceberg]

Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on issue #14046:
URL: https://github.com/apache/iceberg/issues/14046#issuecomment-3939086108

   I see, that's hidden on the GitHub app since it was a reply via email. That's what happens by default if you reply to an issue via email instead of on the website.


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