Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4647

Column header doesn't handle optional arguments correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.14.0
    • 4.15.0, 5.1.0
    • None
    • None

    Description

      SUBSTR(NAME, 1)
      being rendered as
      SUBSTR(NAME, 1, )

      in things like column headings.

      For example:
      0: jdbc:phoenix:> create table hello_table (ID DECIMAL PRIMARY KEY, NAME VARCHAR);
      No rows affected (1.252 seconds)
      0: jdbc:phoenix:> upsert into hello_table values(1, 'abc');
      1 row affected (0.025 seconds)
      0: jdbc:phoenix:> select substr(name, 1) from hello_table;
      --------------------

      SUBSTR(NAME, 1, )

      --------------------

      abc

      --------------------

      Looks to me like there's a bug -
      SUBSTR(NAME, 1) should be represented as SUBSTR(NAME, 1) not as SUBSTR(NAME, 1, )

      Attachments

        Activity

          People

            xucang Xu Cang
            shehzaadn Shehzaad Nakhoda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: