Skip to content

Commit

Permalink
docs: fix reference to @SchemaProvider (#4784)
Browse files Browse the repository at this point in the history
Which doesn't exist. Replace with `@UdfSchemaProvider`, which does.

Co-authored-by: Andy Coates <[email protected]>
  • Loading branch information
big-andy-coates and big-andy-coates authored Mar 17, 2020
1 parent b3cfd43 commit b2da41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs-md/concepts/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ precision and scale of the output based on the input schema.

To use this functionality, you need to specify a method with signature
`public SqlType <your-method-name>(final List<SqlType> params)` and
annotate it with `@SchemaProvider`. Also, you need to link it to the
annotate it with `@UdfSchemaProvider`. Also, you need to link it to the
corresponding UDF by using the `schemaProvider=<your-method-name>`
parameter of the `@Udf` annotation.

Expand Down Expand Up @@ -712,7 +712,7 @@ of the output based on the input schema.

To use this functionality, specify a method with signature
`public SqlType <your-method-name>(final List<SqlType> params)` and annotate it
with `@SchemaProvider`. Also, you need to link it to the corresponding UDF by
with `@UdfSchemaProvider`. Also, you need to link it to the corresponding UDF by
using the `schemaProvider=<your-method-name>` parameter of the `@Udtf`
annotation.

Expand Down
4 changes: 2 additions & 2 deletions docs/developer-guide/udf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ A UDF that returns ``BigDecimal`` (which maps to the SQL ``DECIMAL`` type) may v
and scale of the output based on the input schema.

To use this functionality, you need to specify a method with signature
``public SqlType <your-method-name>(final List<SqlType> params)`` and annotate it with ``@SchemaProvider``.
``public SqlType <your-method-name>(final List<SqlType> params)`` and annotate it with ``@UdfSchemaProvider``.
Also, you need to link it to the corresponding UDF by using the ``schemaProvider=<your-method-name>``
parameter of the ``@Udf`` annotation.

Expand Down Expand Up @@ -732,7 +732,7 @@ implement a UDTF with a non-deterministic return type. A UDTF which returns ``Bi
for example, may vary the precision and scale of the output based on the input schema.

To use this functionality, you need to specify a method with signature
``public SqlType <your-method-name>(final List<SqlType> params)`` and annotate it with ``@SchemaProvider``.
``public SqlType <your-method-name>(final List<SqlType> params)`` and annotate it with ``@UdfSchemaProvider``.
Also, you need to link it to the corresponding UDF by using the ``schemaProvider=<your-method-name>``
parameter of the ``@Udtf`` annotation.

Expand Down

0 comments on commit b2da41d

Please sign in to comment.