apache / apache/kyuubi

[Bug] Kyuubi Spark Nightly failed - select * from test_iceberg *** FAILED ***

Open
#6,656 3 comments 0 reactions 0 assignees View on GitHub
kind:bug priority:major
Dominant language
Scala
Stars
2.4k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

### Search before asking

- [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues.

### Describe the bug

```
/usr/local/service/kyuubi/bin/beeline -u 'jdbc:hive2://XXXX:10009/default;principal=hadoop/_HOST@XXX;kyuubi.engine.type=spark'
```

```
create table test_iceberg(column1 TIMESTAMP,column2 TIMESTAMP) using iceberg;

INSERT INTO test_iceberg VALUES (TIMESTAMP '9999-12-31 23:59:59.999Z', TIMESTAMP '9999-12-31 23:59:59.999Z');
```

```
execute statement - select * from test_iceberg *** FAILED ***

[INFO] [spark-listener-group-shared] 50 % 50 % 50 % 50 % 50 % 50 % 50 % 50 % 50 % (org.apache.spark.scheduler.StatsReportListener(org.apache.spark.internal.Logging.logInfo:60))
java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
at java.sql.Timestamp.valueOf(Timestamp.java:237)
at org.apache.hive.jdbc.HiveBaseResultSet.evaluate(HiveBaseResultSet.java:445)
at org.apache.hive.jdbc.HiveBaseResultSet.getColumnValue(HiveBaseResultSet.java:425)
at org.apache.hive.jdbc.HiveBaseResultSet.getObject(HiveBaseResultSet.java:467)
at org.apache.hive.beeline.Rows$Row.(Rows.java:160)
at org.apache.hive.beeline.BufferedRows.(BufferedRows.java:57)
at org.apache.hive.beeline.IncrementalRowsWithNormalization.(IncrementalRowsWithNormalization.java:50)
at org.apache.hive.beeline.BeeLine.print(BeeLine.java:2256)
at org.apache.hive.beeline.Commands.executeInternal(Commands.java:1026)
at org.apache.hive.beeline.Commands.execute(Commands.java:1213)
at org.apache.hive.beeline.Commands.sql(Commands.java:1142)
at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:1431)
at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:1293)
at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:1076)
at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:538)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:520)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
Error: Unrecognized column type:TIMESTAMP_TYPE (state=,code=0)
```

but,this isssue has fixed in 1.6.0
https://github.com/apache/kyuubi/issues/2262

### Affects Version(s)

kyuubi:1.8.0
Spark:3.4.2

### Kyuubi Server Log Output

_No response_

### Kyuubi Engine Log Output

_No response_

### Kyuubi Server Configurations

_No response_

### Kyuubi Engine Configurations

_No response_

### Additional context

_No response_

### Are you willing to submit PR?

- [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
- [ ] No. I cannot submit a PR at this time.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the beeline query against the Kyuubi 1.8.0 and Spark 3.4.2 versions, then compare the behavior with issue 2262, which the report says fixed this in 1.6.0. Trace the TIMESTAMP result through the beeline execution path shown in the stack trace; done means the nightly select succeeds for the 9999-12-31 timestamp.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala, sql
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.