Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-840

Improve query result print with counting empty table.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: Physical Operator, Worker
    • Labels:
      None

      Description

      If there is no data, tsql will print as follows:

      default> select * from table1;
      id,  name,  score,  type
      -------------------------------
      1,  name1-1,  1.1,  a
      2,  name1-2,  2.3,  b
      3,  name1-3,  3.4,  c
      4,  name1-4,  4.5,  d
      5,  name1-5,  5.6,  e
      
      default> select count(*) from table1 where id = 10;
      Progress: 100%, response time: 0.231 sec
      ?count
      -------------------------------
      (0 rows, 0.231 sec, 0 B selected)
      

      But it need to print result detailedly as follows:

      ?count
      -------------------------------
      0
      -------------------------------
      (1 rows, 0.231 sec, 0 B selected)
      

      Because if users implement some applications with TajoClient or TajoJDBC, they can't understand easy that a query finished successfully or a query finished unsuccessfully.

        Attachments

        1. TAJO-840_2.patch
          23 kB
          Jaehwa Jung
        2. TAJO-840_3.patch
          24 kB
          Jaehwa Jung
        3. TAJO-840_4.patch
          28 kB
          Jaehwa Jung
        4. TAJO-840_5.patch
          28 kB
          Jaehwa Jung
        5. TAJO-840_6.patch
          26 kB
          Jaehwa Jung
        6. TAJO-840_7.patch
          24 kB
          Jaehwa Jung
        7. TAJO-840_8.patch
          24 kB
          Jaehwa Jung
        8. TAJO-840.patch
          13 kB
          Jaehwa Jung

          Activity

            People

            • Assignee:
              blrunner Jaehwa Jung
              Reporter:
              blrunner Jaehwa Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: