calcite icon indicating copy to clipboard operation
calcite copied to clipboard

CALCITE-5860 Set scale when casting Decimal

Open pfzhan opened this issue 2 years ago • 9 comments

pfzhan avatar Jul 19 '23 14:07 pfzhan

Overall the changes LGTM, however when I apply locally the patch for CALCITE-5923, which makes all the tests under SqlOperatorTest run as expected, I get some errors.

./gradlew cleanTest :core:test --tests CalciteSqlOperatorTest

@pfzhan Can you please check if those errors are related with the changes here?

I pulled the latest code locally and ran this command and it was OK.

BUILD SUCCESSFUL in 56s 74 actionable tasks: 19 executed, 3 from cache, 52 up-to-date The remote build cache was disabled during the build due to errors. (base) ➜ calcite git:(CALCITE-5860)

pfzhan avatar Sep 29 '23 12:09 pfzhan

Due to the bug reported under CALCITE-5923 the tests that rely on safeParameters method are not running as expected. Basically, without the fix in CALCITE-5923, the tests will only pass from the validator; executable code is not generated so basically the actual results are not checked.

If you want to test your changes properly you will have to apply "temporarily" the proposed fix in CALCITE-5923 and then run CalciteSqlOperatorTest.

zabetak avatar Sep 29 '23 13:09 zabetak

@pfzhan Now that CALCITE-5923 is committed you can revert https://github.com/apache/calcite/pull/3326/commits/c976ef4ff24966418553807b9e576a0d3c433cd7 and continue the work as usual. Ping me again once you address the test failures. Thanks!

zabetak avatar Oct 18 '23 08:10 zabetak

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Dec 30 '24 03:12 github-actions[bot]

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Mar 20 '25 03:03 github-actions[bot]

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Jun 29 '25 03:06 github-actions[bot]

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Oct 27 '25 03:10 github-actions[bot]