Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigInt is not supported for snowflake ID #148

Open
uribrod opened this issue Nov 7, 2023 · 1 comment
Open

BigInt is not supported for snowflake ID #148

uribrod opened this issue Nov 7, 2023 · 1 comment

Comments

@uribrod
Copy link

uribrod commented Nov 7, 2023

Hi,
Is there any option or workaround to support BigInt? number won't support 64bit id which is used as snowflake id

Avro:
union {null,long} orderId = null;

will generate
orderId?: null | undefined | number

expected
orderId?: null | undefined | BigInt

@AdamRamberg
Copy link

+1.

However, the expected type should be:
orderId?: null | undefined | bigint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants