Skip to content

Prepare 0.14.8 release #1554

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

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Prepare 0.14.8 release #1554

merged 2 commits into from
Aug 19, 2024

Conversation

alancai98
Copy link
Member

Relevant Issues

  • None

Description

  • Prepares v0.14.8 release

Other Information

License Information

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

@alancai98 alancai98 self-assigned this Aug 19, 2024
Copy link

github-actions bot commented Aug 19, 2024

Conformance comparison report

Base (945558c) 1d96145 +/-
% Passing 92.54% 92.54% 0.00%
✅ Passing 5384 5384 0
❌ Failing 434 434 0
🔶 Ignored 0 0 0
Total Tests 5818 5818 0

Number passing in both: 5384

Number failing in both: 434

Number passing in Base (945558c) but now fail: 0

Number failing in Base (945558c) but now pass: 0

Copy link
Member

@johnedquinn johnedquinn left a comment

Choose a reason for hiding this comment

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

I only have one comment on the PR prior: https://github.com/partiql/partiql-lang-kotlin/pull/1551/files#r1722324893

May be worth making the small adjustment prior to release.

@alancai98 alancai98 requested a review from johnedquinn August 19, 2024 21:53
Comment on lines 169 to 178
when (val constr = decimalType.precisionScaleConstraint) {
is DecimalType.PrecisionScaleConstraint.Constrained -> {
val precision = max(constr.precision, acc.first)
val scale = max(constr.scale, acc.second)
precision to scale
}
is DecimalType.PrecisionScaleConstraint.Unconstrained -> {
return StaticType.DECIMAL // Default constructor is unconstrained
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on your original statement here: https://github.com/partiql/partiql-lang-kotlin/pull/1551/files#r1722324893

Hence the is DecimalType.PrecisionScaleConstraint.Unconstrained is a dead branch.

Perhaps we should do something like

val constr = decimalType.precisionScaleConstraint as? DecimalType.PrecisionScaleConstraint.Constrained 
                     ?: throw InternalException(...)

Instead of slightly pass through if somewhere there is a bug.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, agree that if there really is a bug, we should opt to error rather than pass-through. In the latest commit 873b6c4 (#1554),

  • applied your suggestion to give an error
  • renamed computeDecimal to computeConstrainedDecimal for clarity

@alancai98 alancai98 merged commit 546a126 into prep_0_14_8_release Aug 19, 2024
10 checks passed
@alancai98 alancai98 deleted the prep_0_14_8_set branch August 19, 2024 22:41
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.

3 participants