[
https://issues.apache.org/jira/browse/IGNITE-22576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860721#comment-17860721
]
Ignite TC Bot commented on IGNITE-22576:
----------------------------------------
{panel:title=Branch: [pull/11407/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11407/head] Base: [master] : New Tests
(10)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL{color} [[tests
10|https://ci2.ignite.apache.org/viewLog.html?buildId=7933338]]
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testDateTimeCast -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testQuery1 - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testDstShift -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testQuery4 - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testQuery5 - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testQuery2 - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testQuery3 - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: test_timestamp_ms.test - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testQuery6 - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite: DateTimeTest.testQuery7 - PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=7930742&buildTypeId=IgniteTests24Java8_RunAll]
> Calcite engine. Cast varchar to timestamp truncates millis
> ----------------------------------------------------------
>
> Key: IGNITE-22576
> URL: https://issues.apache.org/jira/browse/IGNITE-22576
> Project: Ignite
> Issue Type: Bug
> Reporter: Aleksey Plekhanov
> Assignee: Aleksey Plekhanov
> Priority: Major
> Labels: calcite, ise
>
> Reproducer:
> {noformat}
> SELECT CAST('2021-01-01 01:02:03.456' AS TIMESTAMP)
> {noformat}
> Returns "2021-01-01 01:02:03.000"
> Root cause: default precision for {{TIMESTAMP}} in Calcite is 0, so
> {{TIMESTAMP}} threated as {{TIMESTAMP(0)}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)