Julian Hyde created CALCITE-5485:
------------------------------------
Summary: Make type conversion documentation consistent with
behavior and tests
Key: CALCITE-5485
URL: https://issues.apache.org/jira/browse/CALCITE-5485
Project: Calcite
Issue Type: Bug
Reporter: Julian Hyde
Make type conversion documentation consistent with behavior and tests. Use the
following steps:
* Create an internal map that, for each pair of data types, says whether
conversion is implicit, explicit, or disallowed
* Run tests based on that map
* In {{{}DocumentationTest{}}}, generate an HTML table of that mapping, and
check that that table is consistent with the one in the [SQL
reference|https://calcite.apache.org/docs/reference.html#implicit-type-conversion].
I know of two errors in the table:
* The table says that you can explicitly cast from INT to TIMESTAMP (see
CALCITE-5483); this should be disallowed;
* The table says that you can explicitly cast from DECIMAL to BOOLEAN (see
CALCITE-4777); this should be disallowed.
There may be others.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)