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

Improve query result print with counting empty table.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • Physical Operator, Worker
    • 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_8.patch
          24 kB
          JaeHwa Jung
        2. TAJO-840_7.patch
          24 kB
          JaeHwa Jung
        3. TAJO-840_6.patch
          26 kB
          JaeHwa Jung
        4. TAJO-840_5.patch
          28 kB
          JaeHwa Jung
        5. TAJO-840_4.patch
          28 kB
          JaeHwa Jung
        6. TAJO-840_3.patch
          24 kB
          JaeHwa Jung
        7. TAJO-840_2.patch
          23 kB
          JaeHwa Jung
        8. TAJO-840.patch
          13 kB
          JaeHwa Jung

        Activity

          People

            blrunner JaeHwa Jung
            blrunner JaeHwa Jung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: