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

UDF in_file() doesn't take CHAR or VARCHAR as input

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 0.14.0
    • Component/s: Types, UDF
    • Labels:
      None
    • Tags:
      TODOC14

      Description

      hive> desc alter_varchar_1;
      key                 	string              	None                
      value               	varchar(3)          	None                
      key2                	int                 	None                
      value2              	varchar(10)         	None                
      hive> select in_file(value, value2) from alter_varchar_1;
      FAILED: SemanticException [Error 10016]: Line 1:15 Argument type mismatch 'value': The 1st argument of function IN_FILE must be a string but org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableHiveVarcharObjectInspector@10f1f34a was given.
      

        Attachments

        1. HIVE-6637.3.patch
          12 kB
          Ashish Singh
        2. HIVE-6637.2.patch
          12 kB
          Ashish Singh
        3. HIVE-6637.1.patch
          12 kB
          Ashish Singh

          Activity

            People

            • Assignee:
              singhashish Ashish Singh
              Reporter:
              xuefuz Xuefu Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: