Skip to content

hive cli execute sql query hadoopcatalog table occurred timestamp type cast exception  #1780

@kukuzidian

Description

@kukuzidian
  1. use spark stream api create hadoopcatalog tableA . tableA has 5 culumns ,one is TimestampType.withoutZone .
    I set this value create by TimestampData.fromEpochMillis(System.currentTimeMills()) .
  2. I use hive command line client , test sql 'select * from tableA' ,this sql execute is OK. but test 'select count(*) from tableA' occurred exception . eg : java.lang.ClassCastException: java.time.LocalDateTime cannot be cast to java.sql.Timestamp

hive-2.3.7
iceberg-0.10.0
spark-3.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions