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

NPE when first argument to maxdir is invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.9.0
    • None
    • Functions - Drill
    • None

    Description

      "dfs." is not a valid workspace

      0: jdbc:drill:schema=dfs> select * from bigtable where dir0 = maxdir('dfs.','bigtable'); 
      Query failed: NullPointerException: 
      Error: exception while executing query: Failure while executing query. (state=,code=0)
      

      dfs.test1 does not exist

      0: jdbc:drill:schema=dfs> select * from bigtable where dir0 = maxdir('dfs.test1','bigtable');
      Query failed: NullPointerException: 
      Error: exception while executing query: Failure while executing query. (state=,code=0)
      

      Empty string as a first argument:

      0: jdbc:drill:schema=dfs> select * from bigtable where dir0 = maxdir('','bigtable');
      Query failed: NullPointerException: 
      Error: exception while executing query: Failure while executing query. (state=,code=0)
      

      Attachments

        Issue Links

          Activity

            People

              jaltekruse Jason Altekruse
              vicky Victoria Markman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: