Skip to content

Commit dfadb6b

Browse files
[AV-115725] Add new AI Functions Error to the SQL Error Reference (#473)
* Add new error to the SQL error reference * Small nit * Include the example for future changes
1 parent 4aedaa4 commit dfadb6b

File tree

2 files changed

+5193
-5175
lines changed

2 files changed

+5193
-5175
lines changed

modules/n1ql/pages/n1ql-language-reference/n1ql-error-codes.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/* Use this SQL++ query to generate finderr.json */
1010
1111
WITH errors AS (ARRAY_FLATTEN((SELECT RAW finderr(".*")), 1)),
12-
footnotes AS ([1040])
12+
footnotes AS ([1040, 3000])
1313
SELECT code,
1414
description,
1515
ARRAY CASE WHEN ISARRAY(v) THEN CONCAT2(" ", v)
@@ -65,6 +65,13 @@ These errors are related to the parsing.
6565
include::partial$errors/errors-table.hbs[]
6666
--
6767

68+
[NOTE#note-3000]
69+
.Error 3000
70+
====
71+
If you're using AI Functions, this error code indicates that the function you're using is not enabled or associated with an LLM.
72+
You need to xref:ai:build:ai-functions.adoc#enable-ai-functions[enable the function] and try again.
73+
====
74+
6875
== 4xxx Codes (plan)
6976

7077
These errors are related to the query plan.

0 commit comments

Comments
 (0)