Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1937

Throw exception and give error message when Non-scalar sub-query used in an expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • SQL Parser
    • None

    Description

      #Fri Jan 02 21:20:47 EST 2015
      git.commit.id.abbrev=b491cdb
      

      It is dangerous to have an internal function be exposed to users.
      What if one day user decided to write a UDF with the same signature ?

      0: jdbc:drill:schema=dfs> select SINGLE_VALUE(1) from `t.json`;
      +--+
      |  |
      +--+
      +--+
      No rows selected (0.111 seconds)
      

      Attachments

        1. DRILL-1937.1.patch
          30 kB
          Sean Hsuan-Yi Chu

        Issue Links

          Activity

            People

              amansinha100 Aman Sinha
              vicky Victoria Markman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: