Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

@udf(input=[DataTypes.BIGINT(), DataTypes.BIGINT()], output=DataTypes.BIGINT())

def multiply(x, y):

    return x * y

@udtf(input=[DataTypes.STRING()], output=DataTypes.STRING())

def split(self, x):

    for e in x.split(“#”):

        yield e


Proposed

...

Design

Registration of Python User-Defined Functions

...