[GitHub] [calcite] sonarcloud[bot] commented on pull request #3292: [CALCITE-5807] Add SUBSTRING_INDEX function (enabled in Spark library)

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

[GitHub] [calcite] NobiGo commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
NobiGo commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1255270451 ## core/src/test/java/org/apache/calcite/rex/RexProgramTest.java: ## @@ -2458,6 +2458,79 @@ private SqlOperator getNoDeterministicOperator() { checkSimplifyUnchange

[GitHub] [calcite] ILuffZhe commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
ILuffZhe commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1255219238 ## core/src/test/java/org/apache/calcite/rex/RexProgramTest.java: ## @@ -2458,6 +2458,79 @@ private SqlOperator getNoDeterministicOperator() { checkSimplifyUnchan

[calcite-site] branch main updated: Website deployed from calcite@f38b2a89b46d494b76eb318d1be54b6cb3aab59f

2023-07-06 Thread asf-ci-deploy
This is an automated email from the ASF dual-hosted git repository. asf-ci-deploy pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/calcite-site.git The following commit(s) were added to refs/heads/main by this push: new be0db0c79 Website deployed from calcit

[calcite] branch site updated: Site: Add Dan Zou as committer

2023-07-06 Thread github-bot
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch site in repository https://gitbox.apache.org/repos/asf/calcite.git The following commit(s) were added to refs/heads/site by this push: new d0165364fb Site: Add Dan Zou as committer d0165

[calcite] branch main updated: Site: Add Dan Zou as committer

2023-07-06 Thread zoudan
This is an automated email from the ASF dual-hosted git repository. zoudan pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/calcite.git The following commit(s) were added to refs/heads/main by this push: new f38b2a89b4 Site: Add Dan Zou as committer f38b2a89b

[GitHub] [calcite] zoudan merged pull request #3294: Site: Add Dan Zou as committer

2023-07-06 Thread via GitHub
zoudan merged PR #3294: URL: https://github.com/apache/calcite/pull/3294 -- 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, e-mail: commits-unsubscr...@calcite.apa

[GitHub] [calcite] zoudan commented on a diff in pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

2023-07-06 Thread via GitHub
zoudan commented on code in PR #3290: URL: https://github.com/apache/calcite/pull/3290#discussion_r1255153032 ## site/_docs/reference.md: ## @@ -2752,6 +2752,8 @@ BigQuery's type system uses confusingly different names for types and functions: | b | FROM_BASE32(string)

[GitHub] [calcite] julianhyde commented on pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

2023-07-06 Thread via GitHub
julianhyde commented on PR #3234: URL: https://github.com/apache/calcite/pull/3234#issuecomment-1624488746 If I were to make `safeDouble` always return true, would any tests fail? If I wrote ``` boolean safeBoolean(boolean b) { return b == true || b == false; } ```

[GitHub] [calcite] julianhyde commented on pull request #3147: [CALCITE-5644] Implement BigQuery CONTAINS_SUBSTR

2023-07-06 Thread via GitHub
julianhyde commented on PR #3147: URL: https://github.com/apache/calcite/pull/3147#issuecomment-1624482681 Is the new function class `SqlContainsSubstrFunction` necessary? Thanks for adding javadoc in SqlFunctions. For future reference, `{@code ... }` is slightly preferred over ` ...

[GitHub] [calcite] ILuffZhe commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
ILuffZhe commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1255066917 ## core/src/test/java/org/apache/calcite/rex/RexProgramTest.java: ## @@ -2458,6 +2458,79 @@ private SqlOperator getNoDeterministicOperator() { checkSimplifyUnchan

[GitHub] [calcite] julianhyde commented on pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
julianhyde commented on PR #3296: URL: https://github.com/apache/calcite/pull/3296#issuecomment-1624472758 Sorry about the CI failure. Yes it's because of the commit message. Unfortunately `LintTest` cannot distinguish between commits in a PR and commits on main. -- This is an automated

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

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

[GitHub] [calcite] NobiGo commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
NobiGo commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1255019755 ## core/src/test/resources/sql/misc.iq: ## @@ -2400,4 +2400,124 @@ TS 1969-07-21 00:00:00 !ok +!use scott +!set outputformat mysql + +# [CALCITE-5769] Optimizing 'CA

[calcite] branch main updated: [CALCITE-5780] Simplify '1 > x OR 1 <= x OR x IS NULL' to TRUE

2023-07-06 Thread xiong
This is an automated email from the ASF dual-hosted git repository. xiong pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/calcite.git The following commit(s) were added to refs/heads/main by this push: new b8ffcce8ec [CALCITE-5780] Simplify '1 > x OR 1 <= x

[GitHub] [calcite] NobiGo merged pull request #3267: [CALCITE-5780] Simplify '1 > x OR 1 <= x OR x IS NULL' to TRUE

2023-07-06 Thread via GitHub
NobiGo merged PR #3267: URL: https://github.com/apache/calcite/pull/3267 -- 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, e-mail: commits-unsubscr...@calcite.apa

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

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

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

2023-07-06 Thread via GitHub
mihaibudiu commented on PR #3145: URL: https://github.com/apache/calcite/pull/3145#issuecomment-1624391721 I wasn't exactly sure how to handle this, so what I have done is to: - run just one test file as a slow test, takes a couple of minutes - disable the full testsuite using the `@Dis

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3147: [CALCITE-5644] Implement BigQuery CONTAINS_SUBSTR

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

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3147: [CALCITE-5644] Implement BigQuery CONTAINS_SUBSTR

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

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

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

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3295: [CALCITE-5701] Add NAMED_STRUCT function (enabled in Spark library)

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

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3295: [CALCITE-5701] Add NAMED_STRUCT function (enabled in Spark library)

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

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3147: [CALCITE-5644] Implement BigQuery CONTAINS_SUBSTR

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

[GitHub] [calcite] tanclary commented on pull request #3147: [CALCITE-5644] Implement BigQuery CONTAINS_SUBSTR

2023-07-06 Thread via GitHub
tanclary commented on PR #3147: URL: https://github.com/apache/calcite/pull/3147#issuecomment-1624173994 @julianhyde I added a commit that I think addresses most of your comments. Thanks for the thorough review, i think the PR is in much better shape now. Of course let me know if you have m

[GitHub] [calcite] tanclary commented on a diff in pull request #3147: [CALCITE-5644] Implement BigQuery CONTAINS_SUBSTR

2023-07-06 Thread via GitHub
tanclary commented on code in PR #3147: URL: https://github.com/apache/calcite/pull/3147#discussion_r1254813751 ## core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java: ## @@ -562,6 +564,91 @@ public static List split(ByteString s, ByteString delimiter) { } }

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3295: [CALCITE-5701] Add NAMED_STRUCT function (enabled in Spark library)

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

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

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

[GitHub] [calcite] tanclary commented on a diff in pull request #3147: [CALCITE-5644] Implement BigQuery CONTAINS_SUBSTR

2023-07-06 Thread via GitHub
tanclary commented on code in PR #3147: URL: https://github.com/apache/calcite/pull/3147#discussion_r1254761699 ## core/src/main/java/org/apache/calcite/sql/fun/SqlContainsSubstrFunction.java: ## @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one

[GitHub] [calcite] tanclary commented on a diff in pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

2023-07-06 Thread via GitHub
tanclary commented on code in PR #3234: URL: https://github.com/apache/calcite/pull/3234#discussion_r1254727378 ## core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java: ## @@ -1524,136 +1524,89 @@ public static int multiply(int b0, int b1) { throw notArithmetic("

[GitHub] [calcite] tanclary commented on a diff in pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

2023-07-06 Thread via GitHub
tanclary commented on code in PR #3234: URL: https://github.com/apache/calcite/pull/3234#discussion_r1254726840 ## babel/src/test/resources/sql/big-query.iq: ## @@ -600,6 +600,44 @@ FROM t; !ok !} +# +# SAFE

[GitHub] [calcite] tanclary commented on a diff in pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

2023-07-06 Thread via GitHub
tanclary commented on code in PR #3234: URL: https://github.com/apache/calcite/pull/3234#discussion_r1254727128 ## core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java: ## @@ -2305,6 +2308,30 @@ private static class LastDayImplementor extends MethodNameImpl

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3295: [CALCITE-5701] Add NAMED_STRUCT function (enabled in Spark library)

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

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3295: [CALCITE-5701] Add NAMED_STRUCT function (enabled in Spark library)

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

[GitHub] [calcite] tanclary commented on pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

2023-07-06 Thread via GitHub
tanclary commented on PR #3290: URL: https://github.com/apache/calcite/pull/3290#issuecomment-1624017793 > +1. Hi @tanclary , do you have any other comments? I think this PR is in a good shape now. I think it looks good as well, the only thing I am confused about is the documentation

[GitHub] [calcite] tanclary commented on a diff in pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

2023-07-06 Thread via GitHub
tanclary commented on code in PR #3290: URL: https://github.com/apache/calcite/pull/3290#discussion_r1254704982 ## site/_docs/reference.md: ## @@ -2752,6 +2752,8 @@ BigQuery's type system uses confusingly different names for types and functions: | b | FROM_BASE32(string)

[GitHub] [calcite] olivrlee commented on a diff in pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

2023-07-06 Thread via GitHub
olivrlee commented on code in PR #3234: URL: https://github.com/apache/calcite/pull/3234#discussion_r1254690373 ## core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java: ## @@ -1524,136 +1524,89 @@ public static int multiply(int b0, int b1) { throw notArithmetic("

[GitHub] [calcite] NobiGo commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
NobiGo commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1254531435 ## core/src/test/resources/sql/misc.iq: ## @@ -2400,4 +2400,124 @@ TS 1969-07-21 00:00:00 !ok +!use scott +!set outputformat mysql + +# [CALCITE-5769] Optimizing 'CA

[GitHub] [calcite] NobiGo commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
NobiGo commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1254529639 ## core/src/test/resources/sql/misc.iq: ## @@ -2400,4 +2400,124 @@ TS 1969-07-21 00:00:00 !ok +!use scott +!set outputformat mysql + +# [CALCITE-5769] Optimizing 'CA

[GitHub] [calcite] ILuffZhe commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
ILuffZhe commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1254333066 ## core/src/test/java/org/apache/calcite/rex/RexProgramTest.java: ## @@ -2458,6 +2458,79 @@ private SqlOperator getNoDeterministicOperator() { checkSimplifyUnchan

[GitHub] [calcite] NobiGo commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
NobiGo commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1254524763 ## core/src/test/java/org/apache/calcite/rex/RexProgramTest.java: ## @@ -2458,6 +2458,79 @@ private SqlOperator getNoDeterministicOperator() { checkSimplifyUnchange

[GitHub] [calcite] NobiGo commented on pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
NobiGo commented on PR #3296: URL: https://github.com/apache/calcite/pull/3296#issuecomment-1623774613 > Maybe we need to rerun CI? ![image](https://user-images.githubusercontent.com/45968640/251428017-f65b6bbe-3598-4c10-b78c-dab55198632b.png) Yes. This is because my commit info not f

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

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

[GitHub] [calcite] ILuffZhe commented on a diff in pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

2023-07-06 Thread via GitHub
ILuffZhe commented on code in PR #3290: URL: https://github.com/apache/calcite/pull/3290#discussion_r1254445710 ## site/_docs/reference.md: ## @@ -2752,6 +2752,8 @@ BigQuery's type system uses confusingly different names for types and functions: | b | FROM_BASE32(string)

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

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

[GitHub] [calcite] zoudan commented on a diff in pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

2023-07-06 Thread via GitHub
zoudan commented on code in PR #3290: URL: https://github.com/apache/calcite/pull/3290#discussion_r1254389985 ## core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java: ## @@ -1247,6 +1247,20 @@ private static RelDataType deriveTypeMapFromArrays(SqlOperatorBindi

[GitHub] [calcite] ILuffZhe commented on a diff in pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

2023-07-06 Thread via GitHub
ILuffZhe commented on code in PR #3290: URL: https://github.com/apache/calcite/pull/3290#discussion_r1254366848 ## testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java: ## @@ -4174,6 +4174,37 @@ static void checkRlikeFails(SqlOperatorFixture f) { f0.forEachLib

[GitHub] [calcite] ILuffZhe commented on pull request #3295: [CALCITE-5701] Add NAMED_STRUCT function (enabled in Spark library)

2023-07-06 Thread via GitHub
ILuffZhe commented on PR #3295: URL: https://github.com/apache/calcite/pull/3295#issuecomment-1623572477 Hi @MasseGuillaume . I noticed that your PR contains someone else codes(maybe it's due to the force push), can you adjust your patch? So we can proceed to the next step. -- This is an

[GitHub] [calcite] ILuffZhe commented on a diff in pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
ILuffZhe commented on code in PR #3296: URL: https://github.com/apache/calcite/pull/3296#discussion_r1254333049 ## core/src/test/java/org/apache/calcite/rex/RexProgramTest.java: ## @@ -2458,6 +2458,79 @@ private SqlOperator getNoDeterministicOperator() { checkSimplifyUnchan

[GitHub] [calcite] JiajunBernoulli commented on pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

2023-07-06 Thread via GitHub
JiajunBernoulli commented on PR #3296: URL: https://github.com/apache/calcite/pull/3296#issuecomment-1623456391 Maybe we need to rerun CI? ![image](https://github.com/apache/calcite/assets/45968640/f65b6bbe-3598-4c10-b78c-dab55198632b) -- This is an automated message from the Apach

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3292: [CALCITE-5807] Add SUBSTRING_INDEX function (enabled in Spark library)

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

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

2023-07-06 Thread via GitHub
zabetak commented on PR #3145: URL: https://github.com/apache/calcite/pull/3145#issuecomment-1623394466 The only blocking thing for getting this PR merged is putting in place the "Fast" and "Slow" bucket. The "Very Slow" bucket as well as finding and reporting regressions can be tackled in

[GitHub] [calcite] chucheng92 commented on pull request #3297: [CALCITE-5819] Bump commons-collections 3.x to commons-collections4

2023-07-06 Thread via GitHub
chucheng92 commented on PR #3297: URL: https://github.com/apache/calcite/pull/3297#issuecomment-1623339828 > LGTM pending tests! > > By the way, I feel that using an entire library just for the sake of using `isEmpty` in 2-3 places is an overkill. It would be great if we could get rid

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3296: [CALCITE-5769] Optimizing 'CAST(e AS t) IS NOT NULL' to 'e IS NOT NULL'

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

[GitHub] [calcite] zoudan commented on a diff in pull request #3234: [CALCITE-5735] Add SAFE_MULTIPLY function (enabled in BigQuery)

2023-07-06 Thread via GitHub
zoudan commented on code in PR #3234: URL: https://github.com/apache/calcite/pull/3234#discussion_r1254126502 ## core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java: ## @@ -2305,6 +2308,30 @@ private static class LastDayImplementor extends MethodNameImplem

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3297: [CALCITE-5819] Bump commons-collections 3.x to commons-collections4

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

[GitHub] [calcite] zoudan commented on a diff in pull request #3290: [CALCITE-5782] Add TO_HEX and FROM_HEX functions (enabled in BigQuery library)

2023-07-06 Thread via GitHub
zoudan commented on code in PR #3290: URL: https://github.com/apache/calcite/pull/3290#discussion_r1254112706 ## site/_docs/reference.md: ## @@ -2752,6 +2752,8 @@ BigQuery's type system uses confusingly different names for types and functions: | b | FROM_BASE32(string)

[GitHub] [calcite] sonarcloud[bot] commented on pull request #3297: [CALCITE-5819] Bump commons-collections 3.x to commons-collections4

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

[GitHub] [calcite] chucheng92 opened a new pull request, #3297: [CALCITE-5819] Bump commons-collections 3.x to commons-collections4

2023-07-06 Thread via GitHub
chucheng92 opened a new pull request, #3297: URL: https://github.com/apache/calcite/pull/3297 # What is the purpose of the change Apache commons-collections 3.x is a Java 1.3 compatible version, and it does not use Java 5 generics. Apache commons-collections4 4.4 is an upgraded version o