Skip to content

How does trino support unsigned int64, if you query mysql's unsigned int64 will it overflow #14679

Answered by tangjiangling
china-shang asked this question in Q&A
Discussion options

You must be logged in to vote

io.trino.spi.type.LongDecimalType Will it be used to support this case ?

Yes, when reading a MySQL unsigned bigint column, Trino converts it to Decimal(20, 0) (which internally in Trino is represented by LongDecimalType).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tangjiangling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14676 on October 19, 2022 06:56.