Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-14118 Implement DDL/DML commands for Spark 2.0
  3. SPARK-14335

Describe function command returns wrong output because some of built-in functions are not in function registry.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • SQL
    • None

    Description

      %sql describe function `and`
      
      unction: and
      Class: org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPAnd
      Usage: a and b - Logical and
      

      The output still shows Hive's function because and is not in our FunctionRegistry. Here is a list of such kind of commands

      -
      !
      !=
      *
      /
      &
      %
      ^
      +
      <
      <=
      <=>
      <>
      =
      ==
      >
      >=
      |
      ~
      and
      between
      case
      in
      like
      not
      or
      rlike
      when
      

      Attachments

        Activity

          People

            yongtang Yong Tang
            yhuai Yin Huai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: