diff --git a/docs-md/concepts/functions.md b/docs-md/concepts/functions.md index aef5a35d8a91..0f73fadd96b7 100644 --- a/docs-md/concepts/functions.md +++ b/docs-md/concepts/functions.md @@ -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 (final List 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=` parameter of the `@Udf` annotation. @@ -712,7 +712,7 @@ of the output based on the input schema. To use this functionality, specify a method with signature `public SqlType (final List 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=` parameter of the `@Udtf` annotation. diff --git a/docs/developer-guide/udf.rst b/docs/developer-guide/udf.rst index ab59989e287d..98c551391df2 100644 --- a/docs/developer-guide/udf.rst +++ b/docs/developer-guide/udf.rst @@ -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 (final List params)`` and annotate it with ``@SchemaProvider``. +``public SqlType (final List params)`` and annotate it with ``@UdfSchemaProvider``. Also, you need to link it to the corresponding UDF by using the ``schemaProvider=`` parameter of the ``@Udf`` annotation. @@ -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 (final List params)`` and annotate it with ``@SchemaProvider``. +``public SqlType (final List params)`` and annotate it with ``@UdfSchemaProvider``. Also, you need to link it to the corresponding UDF by using the ``schemaProvider=`` parameter of the ``@Udtf`` annotation.