Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-683

Livy SQLInterpreter get empty array when extract date format rows to json

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • REPL
    • None

    Description

      I submit a sql with select date format: 

      select to_date(update_time) from sec_ods.ods_binlog_task_list_d_whole where concat(YEAR, MONTH, DAY )=20190306 limit 10
      

      in livy:

      we can see data is composed by some empty arrays.

      and in spark this sql can get correct result:

      to_date(sec_ods.ods_binlog_task_list_d_whole.`update_time`)
      2019-03-04
      2019-03-04
      2019-03-04
      2019-03-04
      2019-03-04
      2019-03-04
      2019-03-04
      2019-03-04
      2019-03-04
      2019-03-04
      

      Attachments

        1. image-2019-09-17-14-23-31-715.png
          200 kB
          Zhefeng Wang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Jassy Zhefeng Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m