diff --git a/pkg/sql/sem/builtins/builtins.go b/pkg/sql/sem/builtins/builtins.go index 4a02491a31f1..1cc73f9e123a 100644 --- a/pkg/sql/sem/builtins/builtins.go +++ b/pkg/sql/sem/builtins/builtins.go @@ -85,19 +85,20 @@ const maxAllocatedStringSize = 128 * 1024 * 1024 const errInsufficientArgsFmtString = "unknown signature: %s()" const ( - categoryArray = "Array" - categoryComparison = "Comparison" - categoryCompatibility = "Compatibility" - categoryDateAndTime = "Date and time" - categoryEnum = "Enum" - categoryGenerator = "Set-returning" - categorySpatial = "Spatial" - categoryIDGeneration = "ID generation" - categoryJSON = "JSONB" - categoryMultiTenancy = "Multi-tenancy" - categorySequences = "Sequence" - categoryString = "String and byte" - categorySystemInfo = "System info" + categoryArray = "Array" + categoryComparison = "Comparison" + categoryCompatibility = "Compatibility" + categoryDateAndTime = "Date and time" + categoryEnum = "Enum" + categoryFullTextSearch = "Full Text Search" + categoryGenerator = "Set-returning" + categorySpatial = "Spatial" + categoryIDGeneration = "ID generation" + categoryJSON = "JSONB" + categoryMultiTenancy = "Multi-tenancy" + categorySequences = "Sequence" + categoryString = "String and byte" + categorySystemInfo = "System info" ) func categorizeType(t *types.T) string { @@ -2849,6 +2850,29 @@ may increase either contention or retry errors, or both.`, } })), + // Full text search functions. + "setweight": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "strip": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_delete": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_filter": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_match_qv": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_match_vq": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_rank": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_rank_cd": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "tsvector_cmp": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "tsvector_concat": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "tsvector_to_array": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "json_to_tsvector": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "jsonb_to_tsvector": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "phraseto_tsquery": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "plainto_tsquery": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "to_tsquery": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "to_tsvector": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_debug": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_headline": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "ts_lexize": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + "websearch_to_tsquery": makeBuiltin(tree.FunctionProperties{UnsupportedWithIssue: 7821, Category: categoryFullTextSearch}), + // JSON functions. // The behavior of both the JSON and JSONB data types in CockroachDB is // similar to the behavior of the JSONB data type in Postgres.