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

Incorrect formatting from Avatica in sqlline's table outputformat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • avatica-1.9.0
    • avatica
    • None

    Description

      0: jdbc:phoenix:thin:url=http://localhost:876> select * from STR_VIEW;
      +------------------------------------------+------------------------------------------+--------------------------------+
      |                    PK                    |                   VAL                    |                LONG_VALUE      |
      +------------------------------------------+------------------------------------------+--------------------------------+
      | ASDFASDFASDFASDFASDFASDFASDFASDFASDFASDFASDFASDF | value1                                   | valuevaluevaluevalueva |
      +------------------------------------------+------------------------------------------+--------------------------------+
      1 row selected (0.025 seconds)
      
      0: jdbc:phoenix:localhost:2181:/hbase-1.2> select * from STR_VIEW;
      +---------------------------------------------------+---------+-----------------------------------------------------+
      |                        PK                         |   VAL   |                     LONG_VALUE                      |
      +---------------------------------------------------+---------+-----------------------------------------------------+
      | ASDFASDFASDFASDFASDFASDFASDFASDFASDFASDFASDFASDF  | value1  | valuevaluevaluevaluevaluevaluevaluevaluevaluevalue  |
      +---------------------------------------------------+---------+-----------------------------------------------------+
      1 row selected (0.058 seconds)
      

      This is the difference between using Apache Phoenix's avatica client and the normal client and sqlline 1.1.9. With !outputformat table above, we can see the difference in these two clients, while !outputformat xmlattr shows the complete (and expected) values.

      It seems like some column metadata is just not being properly sent by PQS (at least that's my hunch). The data is present in the results, just not rendered properly. I'll have to look into what sqlline pulls for the column width and figure out if PQS is sending that properly.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: