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

The equalsDeep of SqlRowTypeNameSpec should use equalsDeep for fieldTypes rather than reference comparison

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.35.0, 1.36.0
    • 1.37.0
    • core

    Description

      SqlRowTypeNameSpec#equalsDeep method uses reference comparison for objects inside fieldTypes list instead of using SqlDataTypeSpec#equalsDeep.

      Testcase: Add to `SqlEqualsDeepTest` the following lines of code:

      @Test
      void testRowEqualsDeep() throws SqlParseException {
      assertEqualsDeep("CAST(a AS ROW(field INTEGER))",
      "CAST(a AS ROW(field INTEGER))", true);
      }
      

      Attachments

        Issue Links

          Activity

            People

              dmsysolyatin Dmitry Sysolyatin
              dmsysolyatin Dmitry Sysolyatin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: