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

"ERROR: Cannot evaluate the field "?substr" at node" is occured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.11.0
    • None
    • Benchmark

    Description

      when i enter below query,

      select substr(r_reason_desc,1,20)
             ,avg(ws_quantity)
             ,avg(wr_refunded_cash)
             ,avg(wr_fee)
       from [...]
       where [...]
      group by r_reason_desc
      order by substr(r_reason_desc,1,20)
              ,avg(ws_quantity)
              ,avg(wr_refunded_cash)
              ,avg(wr_fee)
      limit 100;
      

      this error is occured.

      ERROR: Cannot evaluate the field "?substr" at node (12)
      

      so, I editted GROUP BY clause like below then run correctly.

      select substr(r_reason_desc,1,20)
             ,avg(ws_quantity)
             ,avg(wr_refunded_cash)
             ,avg(wr_fee)
       from [...]
       where [...]
      group by substr(r_reason_desc,1,20)
      order by substr(r_reason_desc,1,20)
              ,avg(ws_quantity)
              ,avg(wr_refunded_cash)
              ,avg(wr_fee)
      limit 100;
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkhwangbo Dongkyu Hwangbo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: