Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5485

Make type conversion documentation consistent with behavior and tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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.

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: