jackylee-ch opened a new pull request, #9164:
URL: https://github.com/apache/paimon/pull/9164
### Purpose
`hasOuterReference` reads `argsWithoutTable(1)` before checking the argument
count, so
`vector_search('T')` and `vector_search('T', 'col')` throw a raw
`IndexOutOfBoundsException`
instead of the message `createVectorSearch` already produces.
`IndexOutOfBoundsException` is not
rewritten by `QueryExecution.toInternalError`, so it escapes the analyzer
rule as-is.
Moving the index inside the size check matches `createVectorSearch`,
`createDynamicVectorSearch`, `createHybridSearch` and
`createFullTextSearch`, which all validate
the count first.
### Tests
`VectorSearchQueryTest`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]