[GitHub] [calcite] DonnyZone commented on pull request #3203: [CALCITE-5703] Reduce amount of generated runtime code

2023-05-25 Thread via GitHub
DonnyZone commented on PR #3203: URL: https://github.com/apache/calcite/pull/3203#issuecomment-1563744642 > > Sorry for the late reply. I make some tests in my local environment. The optimization for `BinaryExpression` seems to be incorrect. The code after optimization throws compilation

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3214: [CALCITE-5608] Implement ASINH, ACOSH, ATANH functions

2023-05-25 Thread via GitHub
sonarcloud[bot] commented on PR #3214: URL: https://github.com/apache/calcite/pull/3214#issuecomment-1563741869 Kudos, SonarCloud Quality Gate passed! [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png

[GitHub] [calcite] herunkang2018 commented on pull request #3217: [CALCITE-5717] Prune Project's input if project has no InputRef and the input has 1 row

2023-05-25 Thread via GitHub
herunkang2018 commented on PR #3217: URL: https://github.com/apache/calcite/pull/3217#issuecomment-1563681195 The improvement looks good to me, I have another question, is there other case that can be pruned beside this PR's case? -- This is an automated message from the Apache Git

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3209: [CALCITE-4334] LITERAL_AGG, an aggregate function that returns a constant value

2023-05-25 Thread via GitHub
sonarcloud[bot] commented on PR #3209: URL: https://github.com/apache/calcite/pull/3209#issuecomment-1563581686 Kudos, SonarCloud Quality Gate passed! [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png

[GitHub] [calcite] mihaibudiu commented on pull request #3145: [CALCITE-5615] Program to run SQL Logic Tests for Calcite

2023-05-25 Thread via GitHub
mihaibudiu commented on PR #3145: URL: https://github.com/apache/calcite/pull/3145#issuecomment-1563493613 Currently the "execute" method from Main only returns an integer and writes all diagnostic to the supplied streams. We have to make it return the actual TestStatistics object. So

[GitHub] [calcite] julianhyde commented on pull request #3145: [CALCITE-5615] Program to run SQL Logic Tests for Calcite

2023-05-25 Thread via GitHub
julianhyde commented on PR #3145: URL: https://github.com/apache/calcite/pull/3145#issuecomment-1563491610 Rather than checking that the number of failures doesn't change, it's better to check that there are no failures other than the list of 'expected failures' You don't want the

[GitHub] [calcite] zabetak commented on a diff in pull request #3145: [CALCITE-5615] Program to run SQL Logic Tests for Calcite

2023-05-25 Thread via GitHub
zabetak commented on code in PR #3145: URL: https://github.com/apache/calcite/pull/3145#discussion_r1205976037 ## plus/src/test/java/org/apache/calcite/slt/executors/CalciteExecutor.java: ## @@ -0,0 +1,170 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or

[GitHub] [calcite] zabetak commented on a diff in pull request #3145: [CALCITE-5615] Program to run SQL Logic Tests for Calcite

2023-05-25 Thread via GitHub
zabetak commented on code in PR #3145: URL: https://github.com/apache/calcite/pull/3145#discussion_r1205973836 ## plus/src/test/java/org/apache/calcite/slt/TestCalcite.java: ## @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + *

[GitHub] [calcite] tanclary commented on a diff in pull request #3214: [CALCITE-5608] Implement ASINH, ACOSH, ATANH functions

2023-05-25 Thread via GitHub
tanclary commented on code in PR #3214: URL: https://github.com/apache/calcite/pull/3214#discussion_r1205820685 ## core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java: ## @@ -1897,6 +1930,29 @@ public static double atan2(double b0, double b1) { return

[GitHub] [calcite] julianhyde commented on a diff in pull request #3209: [CALCITE-4334] LITERAL_AGG, an aggregate function that returns a constant value

2023-05-25 Thread via GitHub
julianhyde commented on code in PR #3209: URL: https://github.com/apache/calcite/pull/3209#discussion_r1205725017 ## core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java: ## @@ -1688,6 +1692,27 @@ static class GroupingImplementor implements AggImplementor

[GitHub] [calcite] rubenada commented on a diff in pull request #3209: [CALCITE-4334] LITERAL_AGG, an aggregate function that returns a constant value

2023-05-25 Thread via GitHub
rubenada commented on code in PR #3209: URL: https://github.com/apache/calcite/pull/3209#discussion_r1205653893 ## core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java: ## @@ -1688,6 +1692,27 @@ static class GroupingImplementor implements AggImplementor {

[GitHub] [calcite] rubenada commented on pull request #3214: [CALCITE-5608] Implement ASINH, ACOSH, ATANH functions

2023-05-25 Thread via GitHub
rubenada commented on PR #3214: URL: https://github.com/apache/calcite/pull/3214#issuecomment-1562918294 @tanclary I see you have participated on other trigonometric-related PRs, would you like to take a look at this one? I think it is in a good shape and I will proceed to merge (after

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3225: [CALCITE-5723] Oracle dialect generates SQL that cannot be recognized by lower version Oracle Server(<12) when unparsing OffsetFetch

2023-05-25 Thread via GitHub
sonarcloud[bot] commented on PR #3225: URL: https://github.com/apache/calcite/pull/3225#issuecomment-1562862638 Kudos, SonarCloud Quality Gate passed! [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3223: [CALCITE-5721] Capture build scans on ge.apache.org to benefit from deep build insights

2023-05-25 Thread via GitHub
sonarcloud[bot] commented on PR #3223: URL: https://github.com/apache/calcite/pull/3223#issuecomment-1562850332 Kudos, SonarCloud Quality Gate passed! [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png

[GitHub] [calcite] ILuffZhe opened a new pull request, #3225: [CALCITE-5723] Oracle dialect generates SQL that cannot be recognized by lower version Oracle Server(<12) when unparsing OffsetFetch

2023-05-25 Thread via GitHub
ILuffZhe opened a new pull request, #3225: URL: https://github.com/apache/calcite/pull/3225 (no comment) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe,

[GitHub] [calcite] clayburn commented on pull request #3223: [CALCITE-5721] Capture build scans on ge.apache.org to benefit from deep build insights

2023-05-25 Thread via GitHub
clayburn commented on PR #3223: URL: https://github.com/apache/calcite/pull/3223#issuecomment-1562836473 > Overall LTGM. Is there a way to test that it works as expected before merging? Sure, a few things you can do: * These are the two builds that have run so far for this PR in

[GitHub] [calcite] clayburn commented on a diff in pull request #3223: [CALCITE-5721] Capture build scans on ge.apache.org to benefit from deep build insights

2023-05-25 Thread via GitHub
clayburn commented on code in PR #3223: URL: https://github.com/apache/calcite/pull/3223#discussion_r1205453958 ## settings.gradle.kts: ## @@ -51,7 +53,8 @@ pluginManagement { } plugins { -`gradle-enterprise` +id("com.gradle.enterprise") version "3.13.2" +

[GitHub] [calcite] zstan commented on pull request #3203: [CALCITE-5703] Reduce amount of generated runtime code

2023-05-25 Thread via GitHub
zstan commented on PR #3203: URL: https://github.com/apache/calcite/pull/3203#issuecomment-1562446539 > Sorry for the late reply. I make some tests in my local environment. The optimization for `BinaryExpression` seems to be incorrect. The code after optimization throws compilation error.

[GitHub] [calcite] zabetak commented on a diff in pull request #3223: [CALCITE-5721] Capture build scans on ge.apache.org to benefit from deep build insights

2023-05-25 Thread via GitHub
zabetak commented on code in PR #3223: URL: https://github.com/apache/calcite/pull/3223#discussion_r1205101753 ## settings.gradle.kts: ## @@ -51,7 +53,8 @@ pluginManagement { } plugins { -`gradle-enterprise` +id("com.gradle.enterprise") version "3.13.2" +

[GitHub] [calcite] HanumathRao commented on a diff in pull request #3193: [CALCITE-5683] Two level nested correlated subquery throws an excepti…

2023-05-25 Thread via GitHub
HanumathRao commented on code in PR #3193: URL: https://github.com/apache/calcite/pull/3193#discussion_r1205057374 ## core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java: ## @@ -6823,6 +6823,48 @@ private void checkSemiJoinRuleOnAntiJoin(RelOptRule rule) {

[GitHub] [calcite] HanumathRao commented on a diff in pull request #3193: [CALCITE-5683] Two level nested correlated subquery throws an excepti…

2023-05-25 Thread via GitHub
HanumathRao commented on code in PR #3193: URL: https://github.com/apache/calcite/pull/3193#discussion_r1205054838 ## core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java: ## @@ -866,6 +866,8 @@ private static void matchFilter(SubQueryRemoveRule rule,

[GitHub] [calcite] zoudan commented on a diff in pull request #3224: [CALCITE-5722] Fix RangeSets.isPoint to use Comparable equality

2023-05-25 Thread via GitHub
zoudan commented on code in PR #3224: URL: https://github.com/apache/calcite/pull/3224#discussion_r1205054013 ## core/src/main/java/org/apache/calcite/util/RangeSets.java: ## @@ -129,7 +129,7 @@ public static > int hashCode(RangeSet rangeSet) { public static > boolean

[GitHub] [calcite] zoudan commented on a diff in pull request #3224: [CALCITE-5722] Fix RangeSets.isPoint to use Comparable equality

2023-05-25 Thread via GitHub
zoudan commented on code in PR #3224: URL: https://github.com/apache/calcite/pull/3224#discussion_r1205051820 ## core/src/test/java/org/apache/calcite/util/RangeSetTest.java: ## @@ -155,6 +155,9 @@ class RangeSetTest { assertThat(RangeSets.isPoint(Range.atMost(0)),

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3193: [CALCITE-5683] Two level nested correlated subquery throws an excepti…

2023-05-25 Thread via GitHub
sonarcloud[bot] commented on PR #3193: URL: https://github.com/apache/calcite/pull/3193#issuecomment-1562349622 Kudos, SonarCloud Quality Gate passed! [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png

[GitHub] [calcite] HanumathRao commented on a diff in pull request #3193: [CALCITE-5683] Two level nested correlated subquery throws an excepti…

2023-05-25 Thread via GitHub
HanumathRao commented on code in PR #3193: URL: https://github.com/apache/calcite/pull/3193#discussion_r1205043890 ## core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java: ## @@ -3549,7 +3549,17 @@ protected final void createAggImpl( // implement HAVING (we