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

Simplifies PType's APIs #1658

Merged
merged 4 commits into from
Nov 27, 2024
Merged

Simplifies PType's APIs #1658

merged 4 commits into from
Nov 27, 2024

Conversation

johnedquinn
Copy link
Member

@johnedquinn johnedquinn commented Nov 26, 2024

Recommendation

Since the diff is quite large, I'd recommend looking at the diff of each commit rather than the whole diff.

Relevant Issues

Closes #1489

Description

  • Sets up the backwards-compatibility story for PType by removing PType.Kind and converting all variants to static final integers.
  • Removed the deprecation notices on PType.
  • Updated NUMERIC to use precision/scale. Note that the change of NUMERIC to use BigDecimal will come later when updating Datum.
  • Removed the no-arg PType#decimal() and PType#numeric() static methods.

License Information

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Member

@RCHowell RCHowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, no blocking comments

@RCHowell RCHowell merged commit 443c3eb into partiql:v1 Nov 27, 2024
7 checks passed
@johnedquinn johnedquinn deleted the v1-ptype-apis branch November 29, 2024 18:42
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.

2 participants