Comments (3)
I haven't reproduced it. Can you provide more detailed steps to reproduce it, is the tag written in spark?
from paimon.
I haven't reproduced it. Can you provide more detailed steps to reproduce it, is the tag written in spark?
I find the reson. The tag is created by flink at paimon 0.8 snapshot version which compliled early than 2024-04-15, But after 2024-04-15 Tag class add two new class field.
My tag file content:
{
"version" : 3,
"id" : 1,
"schemaId" : 0,
"baseManifestList" : "manifest-list-0dfb8ec3-0445-45f9-9c59-4d08e6443c43-0",
"deltaManifestList" : "manifest-list-0dfb8ec3-0445-45f9-9c59-4d08e6443c43-1",
"changelogManifestList" : "manifest-list-0dfb8ec3-0445-45f9-9c59-4d08e6443c43-2",
"commitUser" : "59c08f33-b5de-4478-823c-5e681ee6e0b3",
"commitIdentifier" : 1,
"commitKind" : "APPEND",
"timeMillis" : 1714379998639,
"logOffsets" : { },
"totalRecordCount" : 2531,
"deltaRecordCount" : 2531,
"changelogRecordCount" : 8227,
"watermark" : 1714407456182
}
However new commit add new class fields:
Spark read tag system tableโs jar is compiled after 2024-04-15.
So new version code read tag's tagCreateTime using LocalDateTime.MIN.
This directly made next exception
Caused by: java.lang.ArithmeticException: long overflow
at java.lang.Math.multiplyExact(Math.java:892)
at org.apache.spark.sql.catalyst.util.DateTimeUtils$.millisToMicros(DateTimeUtils.scala:240)
at org.apache.spark.sql.catalyst.util.DateTimeUtils$.fromJavaTimestamp(DateTimeUtils.scala:190)
at org.apache.spark.sql.catalyst.util.DateTimeUtils.fromJavaTimestamp(DateTimeUtils.scala)
Because LocalDateTime.MIN timestamp millis convert to micros is bigger than Long.MAX_VALUE.
I think there could use a big Date to instead LocalDateTime.MIN which is just a symbol to express old Tag file do not having tagCreateTime field. Such as we could use Epoch time.
So i will submit a PR to fix it.
from paimon.
Thanks @eric666666 for reporting and investigation. We should return null for these two fields when they are nulls.
from paimon.
Related Issues (20)
- [Bug] After the flink job written to Paimon modifies `sink.parallelism`, the job will not be able to recover from the checkpoint HOT 3
- [Feature] Optimize splits generator for unaware bucket mode
- [Feature] Support Hive 4.0.0
- [Feature] Flink batch reads the paimon partition table jobManager oom and optimizes its partition scanning
- [Feature] Supports flink-cdc write data to branch
- [Bug] Config index-ttl for Cross Partitions Upsert will result RocksDBException(value's length less than timestamp's) in bootstrap stage HOT 1
- [Feature] 1-1 mapping between paimon buckets and kafka partitions HOT 2
- [Bug] Hilbert-curve dependency is missed in the built JAR file of paimon-flink/paimon-xxx module
- [Feature] Reduce S3 API calls HOT 1
- [Bug] In combined mode, an error will be reported if the number of buckets is not set HOT 1
- [Bug] Hidden dangers in lookup function HOT 1
- [Feature] Skip listPartitions scan for FlinkRecomputeStatisticsProgram
- [Feature] Paimon supports Flink Connector syntax
- [Bug] Partition type filter error when insert overwrite statement use date or time type
- [Bug] spark create tag statement error in document
- [Bug] NoSuchMethodError: org.apache.spark.sql.catalyst.trees.TreePattern$.SCALAR_SUBQUERY_REFERENCE HOT 1
- [Bug] first-row engine Batch Incremental count not equal changelogRecordCount HOT 1
- [Bug] Dv table read containing a fatal bug. HOT 1
- [Feature] Added sharded reading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paimon.