[ 
https://issues.apache.org/jira/browse/CALCITE-4301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stamatis Zampetakis resolved CALCITE-4301.
------------------------------------------
    Fix Version/s: 1.27.0
       Resolution: Fixed

I tested with guava 25.0-jre and it works fine. 

Fixed in 
[5ae3c16153fd81fdf28f8493eb3c0178b860f269|https://github.com/apache/calcite/commit/5ae3c16153fd81fdf28f8493eb3c0178b860f269].
 Thanks for the PR [~asolimando]!

> Unit tests for Cassandra adapter are wrongly applying ITEM operator to STRUCT 
> columns
> -------------------------------------------------------------------------------------
>
>                 Key: CALCITE-4301
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4301
>             Project: Calcite
>          Issue Type: Test
>          Components: cassandra-adapter
>    Affects Versions: 1.25.0
>            Reporter: Alessandro Solimando
>            Assignee: Alessandro Solimando
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.27.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The following unit tests included in 
> "cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterDataTypesTest.java"
>  are wrong, as they apply _ITEM_ operator to a struct column _f_tuple_, 
> instead of the _DOT_ operator. 
> {code:java}
> @Test void testCollectionsInnerRowType() {
>   CalciteAssert.that()
>       .with(DTCASSANDRA)
>       .query("select \"f_list\"[1], "
>           + "\"f_map\"['k1'], "
>           + "\"f_tuple\"['1'], "
>           + "\"f_tuple\"['2'], "
>           + "\"f_tuple\"['3']"
>           + " from \"test_collections\"")
>       .typeIs("[EXPR$0 INTEGER"
>           + ", EXPR$1 VARCHAR"
>           + ", EXPR$2 BIGINT"
>           + ", EXPR$3 VARBINARY"
>           + ", EXPR$4 TIMESTAMP]");
> }
> @Test void testCollectionsInnerValues() {
>        CalciteAssert.that()
>            .with(DTCASSANDRA)
>            .query("select \"f_list\"[1], "
>                + "\"f_map\"['k1'], "
>                + "\"f_tuple\"['1'], "
>                + "\"f_tuple\"['2'], "
>                + "\"f_tuple\"['3']"
>                + " from \"test_collections\"")
>            .returns("EXPR$0=1"
>                + "; EXPR$1=v1"
>                + "; EXPR$2=3000000000"
>                + "; EXPR$3=30ff87"
>                + "; EXPR$4=2015-05-03 13:30:54.234");
> }{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to