Packages

case class SQLFunction(name: FunctionIdentifier, inputParam: Option[StructType], returnType: Either[DataType, StructType], exprText: Option[String], queryText: Option[String], comment: Option[String], deterministic: Option[Boolean], containsSQL: Option[Boolean], isTableFunc: Boolean, properties: Map[String, String], owner: Option[String] = None, createTimeMs: Long = System.currentTimeMillis) extends UserDefinedFunction with Product with Serializable

Represent a SQL function.

name

qualified name of the SQL function

inputParam

function input parameters

returnType

function return type

exprText

function body as an expression

queryText

function body as a query

comment

function comment

deterministic

whether the function is deterministic

containsSQL

whether the function has data access routine to be CONTAINS SQL

isTableFunc

whether the function is a table function

properties

additional properties to be serialized for the SQL function

owner

owner of the function

createTimeMs

function creation time in milliseconds

Linear Supertypes
Serializable, Product, Equals, UserDefinedFunction, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SQLFunction
  2. Serializable
  3. Product
  4. Equals
  5. UserDefinedFunction
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SQLFunction(name: FunctionIdentifier, inputParam: Option[StructType], returnType: Either[DataType, StructType], exprText: Option[String], queryText: Option[String], comment: Option[String], deterministic: Option[Boolean], containsSQL: Option[Boolean], isTableFunc: Boolean, properties: Map[String, String], owner: Option[String] = None, createTimeMs: Long = System.currentTimeMillis)

    name

    qualified name of the SQL function

    inputParam

    function input parameters

    returnType

    function return type

    exprText

    function body as an expression

    queryText

    function body as a query

    comment

    function comment

    deterministic

    whether the function is deterministic

    containsSQL

    whether the function has data access routine to be CONTAINS SQL

    isTableFunc

    whether the function is a table function

    properties

    additional properties to be serialized for the SQL function

    owner

    owner of the function

    createTimeMs

    function creation time in milliseconds

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val comment: Option[String]
  7. val containsSQL: Option[Boolean]
  8. val createTimeMs: Long

    Function creation time in milliseconds since the linux epoch

    Function creation time in milliseconds since the linux epoch

    Definition Classes
    SQLFunctionUserDefinedFunction
  9. val deterministic: Option[Boolean]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. val exprText: Option[String]
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def getExpressionAndQuery(parser: ParserInterface, isTableFunc: Boolean): (Option[Expression], Option[LogicalPlan])

    Optionally get the function body as an expression or query using the given parser.

  14. def getSQLConfigs: Map[String, String]

    Get SQL configs from the function properties.

    Get SQL configs from the function properties. Use this to restore the SQL configs that should be used for this function.

    Definition Classes
    UserDefinedFunction
  15. def getScalarFuncReturnType: DataType

    Get scalar function return data type.

  16. def getTableFuncReturnCols: StructType

    Get table function return columns.

  17. val inputParam: Option[StructType]
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val isTableFunc: Boolean
  20. val language: RoutineLanguage

    The language of the user defined function.

    The language of the user defined function.

    Definition Classes
    SQLFunctionUserDefinedFunction
  21. val name: FunctionIdentifier

    Qualified name of the function

    Qualified name of the function

    Definition Classes
    SQLFunctionUserDefinedFunction
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. val owner: Option[String]

    Owner of the function

    Owner of the function

    Definition Classes
    SQLFunctionUserDefinedFunction
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. val properties: Map[String, String]

    Additional properties to be serialized for the function.

    Additional properties to be serialized for the function. Use this to preserve the runtime configuration that should be used during the function execution, such as SQL configs etc. See SQLConf for more info.

    Definition Classes
    SQLFunctionUserDefinedFunction
  28. val queryText: Option[String]
  29. val returnType: Either[DataType, StructType]
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toCatalogFunction: CatalogFunction

    Convert the SQL function to a CatalogFunction.

    Convert the SQL function to a CatalogFunction.

    Definition Classes
    SQLFunctionUserDefinedFunction
  32. def toExpressionInfo: ExpressionInfo

    Convert the SQL function to an ExpressionInfo.

    Convert the SQL function to an ExpressionInfo.

    Definition Classes
    SQLFunctionUserDefinedFunction
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from UserDefinedFunction

Inherited from AnyRef

Inherited from Any

Ungrouped