[jira] [Commented] (IGNITE-19331) Sql. CAST with Boolean operations is failed.
[ https://issues.apache.org/jira/browse/IGNITE-19331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17848484#comment-17848484 ] Iurii Gerzhedovich commented on IGNITE-19331: - [~zstan] As I see we failed such queries with an error ' Cast function cannot convert value of type FLOAT to type BOOLEAN' and it looks a valid. I suggest to move the test case to test_boolean_cast.test with check the error message > Sql. CAST with Boolean operations is failed. > > > Key: IGNITE-19331 > URL: https://issues.apache.org/jira/browse/IGNITE-19331 > Project: Ignite > Issue Type: Improvement > Components: sql >Reporter: Iurii Gerzhedovich >Priority: Major > Labels: ignite-3 > > SqlRunner tests are failed > {noformat} > /sql/test_boolean_cast.test_ignore > {noformat} > {noformat} > query T > SELECT CAST(CAST('1' AS float) AS BOOLEAN) > > true > {noformat} > {noformat} > Not expected result at: (test_try_cast.test:150). [row=0, col=0, > expected=true, actual=false] > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkEquals(SqlScriptRunner.java:635) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkResultTuples(SqlScriptRunner.java:604) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkResult(SqlScriptRunner.java:583) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.execute(SqlScriptRunner.java:555) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner.run(SqlScriptRunner.java:115) > at > org.apache.ignite.internal.processors.query.calcite.logical.ScriptTestRunner$1.run(ScriptTestRunner.java:219){noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IGNITE-19331) Sql. CAST with Boolean operations is failed.
[ https://issues.apache.org/jira/browse/IGNITE-19331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17846523#comment-17846523 ] Evgeny Stanilovsky commented on IGNITE-19331: - i investigate a bit more and seems we can remove test_boolean_cast.test_ignore cause it`s irrelevant with cast matrix from 6.22 standard chapter, [~jooger] wdyt ? > Sql. CAST with Boolean operations is failed. > > > Key: IGNITE-19331 > URL: https://issues.apache.org/jira/browse/IGNITE-19331 > Project: Ignite > Issue Type: Improvement > Components: sql >Reporter: Iurii Gerzhedovich >Priority: Major > Labels: ignite-3 > > SqlRunner tests are failed > {noformat} > /sql/test_boolean_cast.test_ignore > {noformat} > {noformat} > query T > SELECT CAST(CAST('1' AS float) AS BOOLEAN) > > true > {noformat} > {noformat} > Not expected result at: (test_try_cast.test:150). [row=0, col=0, > expected=true, actual=false] > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkEquals(SqlScriptRunner.java:635) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkResultTuples(SqlScriptRunner.java:604) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkResult(SqlScriptRunner.java:583) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.execute(SqlScriptRunner.java:555) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner.run(SqlScriptRunner.java:115) > at > org.apache.ignite.internal.processors.query.calcite.logical.ScriptTestRunner$1.run(ScriptTestRunner.java:219){noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IGNITE-19331) Sql. CAST with Boolean operations is failed.
[ https://issues.apache.org/jira/browse/IGNITE-19331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17846517#comment-17846517 ] Evgeny Stanilovsky commented on IGNITE-19331: - such casts are not possible in different DB, also standard forbid such casts, seems we need to delete this expression and move forward, wdyt ? > Sql. CAST with Boolean operations is failed. > > > Key: IGNITE-19331 > URL: https://issues.apache.org/jira/browse/IGNITE-19331 > Project: Ignite > Issue Type: Improvement > Components: sql >Reporter: Iurii Gerzhedovich >Priority: Major > Labels: ignite-3 > > SqlRunner tests are failed > {noformat} > /sql/test_boolean_cast.test_ignore > {noformat} > {noformat} > query T > SELECT CAST(CAST('1' AS float) AS BOOLEAN) > > true > {noformat} > {noformat} > Not expected result at: (test_try_cast.test:150). [row=0, col=0, > expected=true, actual=false] > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkEquals(SqlScriptRunner.java:635) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkResultTuples(SqlScriptRunner.java:604) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.checkResult(SqlScriptRunner.java:583) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner$Query.execute(SqlScriptRunner.java:555) > at > org.apache.ignite.internal.processors.query.calcite.logical.SqlScriptRunner.run(SqlScriptRunner.java:115) > at > org.apache.ignite.internal.processors.query.calcite.logical.ScriptTestRunner$1.run(ScriptTestRunner.java:219){noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)