Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-3044

INDEX UDF is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8.1
    • None
    • UDF
    • None

    Description

      Steps to reproduce
      ----------------------
      Create the table and load data
      Execute the index query
      Please find the sample code

      createStatement.executeQuery("create table sample4(number array<int>) partitioned by (part2 STRING)");
      createStatement.executeQuery("load data local inpath '/home/hivecurwork/data/array.txt' into table sample4 partition (part2='x')");
      ResultSet executeQuery1 = createStatement.executeQuery("select index(number,3) from sample4");
      while(executeQuery1.next())
      {
        System.out.println("res:"+executeQuery1.getString(1));
      }
       
      

      Attachments

        Activity

          People

            aniket486 Aniket Namadeo Mokashi
            kristamswathi Kristam Subba Swathi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: