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

Mihai Budiu commented on CALCITE-7742:
--------------------------------------

Disjoint caches sounds like a principled solution.

But I think sometimes Calcite expressions are created with a type system and 
then used with another one, like when moving from Rel to Enumerable. I haven't 
payed enough attention to the type system used for manipulating each expression.

> Test framework has non-determinstic tests
> -----------------------------------------
>
>                 Key: CALCITE-7742
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7742
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.42.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>
> Some tests intermittently fail in CI, here's an example output:
> {code:java}
> FAILURE   0.1sec, 
> org.apache.calcite.rel.rel2sql.RelToSqlConverterRoundTripTest > 
> testCastToChar()
>     java.lang.AssertionError:
>     Expected: is "SELECT CAST(`product_id` AS CHAR)\nFROM 
> `foodmart`.`product`"
>          but: was "SELECT CAST(`product_id` AS CHAR(1))\nFROM 
> `foodmart`.`product`" {code}
> Seemingly this is because there is some shared state between concurrent 
> tests, e.g., perhaps a custom type system installed?



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

Reply via email to