From b2da41db23bdc437428ec9fd6115b69be4b805dc Mon Sep 17 00:00:00 2001 From: Andy Coates <8012398+big-andy-coates@users.noreply.github.com> Date: Tue, 17 Mar 2020 08:17:43 +0000 Subject: [PATCH] docs: fix reference to @SchemaProvider (#4784) Which doesn't exist. Replace with `@UdfSchemaProvider`, which does. Co-authored-by: Andy Coates --- docs-md/concepts/functions.md | 4 ++-- docs/developer-guide/udf.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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.