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)
- [Feature] paimon-mysql-cdc supports parsing gh-ost ddl records
- [Bug] streaming read by `from-timestamp` may be occur exception(snapshot file not fund) sometimes HOT 2
- [Feature] HiveCatalog support create/alter/rename table with upper case
- [Bug] Invalid partition filter may cause ArrayIndexOutOfBoundsException in files system table HOT 2
- [Bug] Creating a tag directory is not a perfect fix HOT 1
- [Feature] Support creating database with properties in flink
- [Bug] java.lang.UnsatisfiedLinkError: com.github.luben.zstd.ZstdInputStreamNoFinalizer.recommendedDInSize()J
- [spark] Migrate should guard for file format option which may not accurate to the hive table
- [Question] FileStoreCommitImpl.tryCommitOnce failed
- [Feature] FileSystemCatalog supports database properties
- [Bug] Mysqlcdc2paimon Action Error When Adding Int Column HOT 1
- [Bug] 'tag.num-retained-max' is unavailable HOT 3
- [Bug] using spark CALL sys.migrate_table Exception
- [Bug] In cdc database synchronization, data changes to new tables using the combined mode are not monitored, and the job needs to be restarted
- [Feature] Add metrics for lookup operator
- [Bug] When metastore.partitioned-table is enabled, the partition information in hms will not be deleted after the expired partition is automatically deleted. HOT 1
- kafka-cdc正库同步为每张表添加指定分区分桶功能。
- [Bug] paimon oss needs Schema file created first
- [Bug]
- [Feature] Support cache lookup operator in flink
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.