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

feat: Support cast to BIGINT before aggregation #461

Merged
merged 3 commits into from
May 4, 2022

Conversation

nehanene15
Copy link
Collaborator

Closes Issue #416

  • Adds support for specifying a default_cast for any column
  • Adds flag --cast-to-bigint which automatically casts any int32 column into int64 before aggregations. This is useful when running into INT overflow errors.

@nehanene15
Copy link
Collaborator Author

/gcbrun

@nehanene15 nehanene15 merged commit ca598a0 into develop May 4, 2022
@nehanene15 nehanene15 deleted the issue416-casting branch May 4, 2022 05:03
@crfacundo
Copy link

Hi, when i use --cast-to-bigint i have an error because int64 is not a datatype in teradata. Is there any possibility to cast to bigint datatype?

@nehanene15
Copy link
Collaborator Author

Hi, when i use --cast-to-bigint i have an error because int64 is not a datatype in teradata. Is there any possibility to cast to bigint datatype?

You can see this example on how to cast to a different data type such as decimal/numeric.

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

Successfully merging this pull request may close these issues.

None yet

3 participants