[jira] [Comment Edited] (CALCITE-5921) SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure

2023-10-25 Thread Ruben Q L (Jira)


[ 
https://issues.apache.org/jira/browse/CALCITE-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17779451#comment-17779451
 ] 

Ruben Q L edited comment on CALCITE-5921 at 10/25/23 12:10 PM:
---

I have the impression that the problem comes from the recent changes introduced 
by CALCITE-5923 (UPDATE: and CALCITE-6014), which were not part of [~mbudiu]'s 
PR (because the branch was created before CALCITE-5923/CALCITE-6014 was 
merged). Probably some adjustments are needed to make the ensemble work fine, 
wip...


was (Author: rubenql):
I have the impression that the problem comes from the recent changes introduced 
by CALCITE-5923, which were not part of [~mbudiu]'s PR (because the branch was 
created before CALCITE-5923 was merged). Probably some adjustments are needed 
to make the ensemble work fine, wip...

> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure
> ---
>
> Key: CALCITE-5921
> URL: https://issues.apache.org/jira/browse/CALCITE-5921
> Project: Calcite
>  Issue Type: Bug
>  Components: core
>Affects Versions: 1.35.0
>Reporter: Runkang He
>Assignee: Runkang He
>Priority: Major
>  Labels: pull-request-available
> Fix For: 1.36.0
>
>
> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure. 
> See more in [code 
> line|https://github.com/apache/calcite/blob/50c3edfc3d6630528ab51fe836bd50df82cc7db8/testkit/src/main/java/org/apache/calcite/test/SqlOperatorFixtureImpl.java#L160].
>  When the parameter `runtime` of SqlOperatorFixture.checkFails is true, it 
> should execute the query and check runtime failure, but currently it ignores 
> this, and only checks the parse and validation failure.
> When fix this, there are 4 failed test cases in CalciteSqlOperatorTest.
> At last, this issue was found when to implement `BIT_GET` function in 
> CALCITE-5848.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (CALCITE-5921) SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure

2023-10-25 Thread Ruben Q L (Jira)


[ 
https://issues.apache.org/jira/browse/CALCITE-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17779445#comment-17779445
 ] 

Ruben Q L edited comment on CALCITE-5921 at 10/25/23 10:31 AM:
---

It seems that, even all the PR checks were green, after the merge some tests 
(involving CAST) are broken on master
https://github.com/apache/calcite/actions/runs/6638635554/

Does anyone have any idea why? Looking into that


was (Author: rubenql):
It seems that, even all the PR checks were green, after the merge some tests 
are broken on master
https://github.com/apache/calcite/actions/runs/6638635554/

Does anyone have any idea why? Looking into that

> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure
> ---
>
> Key: CALCITE-5921
> URL: https://issues.apache.org/jira/browse/CALCITE-5921
> Project: Calcite
>  Issue Type: Bug
>  Components: core
>Affects Versions: 1.35.0
>Reporter: Runkang He
>Assignee: Runkang He
>Priority: Major
>  Labels: pull-request-available
> Fix For: 1.36.0
>
>
> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure. 
> See more in [code 
> line|https://github.com/apache/calcite/blob/50c3edfc3d6630528ab51fe836bd50df82cc7db8/testkit/src/main/java/org/apache/calcite/test/SqlOperatorFixtureImpl.java#L160].
>  When the parameter `runtime` of SqlOperatorFixture.checkFails is true, it 
> should execute the query and check runtime failure, but currently it ignores 
> this, and only checks the parse and validation failure.
> When fix this, there are 4 failed test cases in CalciteSqlOperatorTest.
> At last, this issue was found when to implement `BIT_GET` function in 
> CALCITE-5848.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (CALCITE-5921) SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure

2023-10-24 Thread Mihai Budiu (Jira)


[ 
https://issues.apache.org/jira/browse/CALCITE-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17779163#comment-17779163
 ] 

Mihai Budiu edited comment on CALCITE-5921 at 10/24/23 4:08 PM:


I can add the solution, I can't add a test, since the test infrastructure is 
broken, which is what I fixed in https://github.com/apache/calcite/pull/3471. I 
will add a PR for [CALCITE-5990] today. But it would be great to get 3471 in 
for 1.36 too.

 


was (Author: JIRAUSER295926):
I can add the solution, I can't add a test, since the test infrastructure is 
broken, which is what I fixed in https://github.com/apache/calcite/pull/3471. I 
will add a PR for [CALCITE-5999] today. But it would be great to get 3471 in 
for 1.36 too.

 

> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure
> ---
>
> Key: CALCITE-5921
> URL: https://issues.apache.org/jira/browse/CALCITE-5921
> Project: Calcite
>  Issue Type: Bug
>  Components: core
>Affects Versions: 1.35.0
>Reporter: Runkang He
>Assignee: Runkang He
>Priority: Major
>  Labels: pull-request-available
>
> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure. 
> See more in [code 
> line|https://github.com/apache/calcite/blob/50c3edfc3d6630528ab51fe836bd50df82cc7db8/testkit/src/main/java/org/apache/calcite/test/SqlOperatorFixtureImpl.java#L160].
>  When the parameter `runtime` of SqlOperatorFixture.checkFails is true, it 
> should execute the query and check runtime failure, but currently it ignores 
> this, and only checks the parse and validation failure.
> When fix this, there are 4 failed test cases in CalciteSqlOperatorTest.
> At last, this issue was found when to implement `BIT_GET` function in 
> CALCITE-5848.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (CALCITE-5921) SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure

2023-08-15 Thread Runkang He (Jira)


[ 
https://issues.apache.org/jira/browse/CALCITE-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17754666#comment-17754666
 ] 

Runkang He edited comment on CALCITE-5921 at 8/15/23 2:52 PM:
--

[~julianhyde] Thanks for linking the related issue. I have quickly read the two 
related issues, and after that, I think this issue may be not directly related 
to them. It looks like it was introduced by test fixture framework in 
CALCITE-4885.

For more, the basic idea to fix this is to add `tester.checkFails(factory, sap, 
expectedError, true)` in SqlOperatorFixture.checkFails when runtime is true.


was (Author: JIRAUSER280488):
[~julianhyde] Thanks for linking the related issue. I have quickly read the two 
related issues, and after that, I think this issue may be not directly related 
to them. It looks like it was introduced by test fixture framework in 
CALCITE-4885.
For more, the basic idea to fix this is to add `tester.checkFails(factory, sap, 
expectedError, true)` in SqlOperatorFixture.checkFails when runtime is true.

> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure
> ---
>
> Key: CALCITE-5921
> URL: https://issues.apache.org/jira/browse/CALCITE-5921
> Project: Calcite
>  Issue Type: Bug
>  Components: core
>Affects Versions: 1.35.0
>Reporter: Runkang He
>Assignee: Runkang He
>Priority: Major
>
> SqlOperatorFixture.checkFails and checkAggFails don't check runtime failure. 
> See more in [code 
> line|https://github.com/apache/calcite/blob/50c3edfc3d6630528ab51fe836bd50df82cc7db8/testkit/src/main/java/org/apache/calcite/test/SqlOperatorFixtureImpl.java#L160].
>  When the parameter `runtime` of SqlOperatorFixture.checkFails is true, it 
> should execute the query and check runtime failure, but currently it ignores 
> this, and only checks the parse and validation failure.
> When fix this, there are 4 failed test cases in CalciteSqlOperatorTest.
> At last, this issue was found when to implement `BIT_GET` function in 
> CALCITE-5848.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)