Theia-Madalin Vlad created OAK-12370:
----------------------------------------
Summary: Detect queries that use a "/" in front of columns
Key: OAK-12370
URL: https://issues.apache.org/jira/browse/OAK-12370
Project: Jackrabbit Oak
Issue Type: Improvement
Components: query
Reporter: Theia-Madalin Vlad
{noformat}
SELECT * FROM [dam:Asset] AS s
WHERE ISDESCENDANTNODE([/content/dam/approved])
AND s.[/jcr:content/metadata/prism:expirationDate] <
CAST('2025-08-14T07:59:59.000+08:00' AS DATE)
AND s.[/jcr:content/metadata/prism:expirationDate] >
CAST('2025-08-12T08:00:00.000+08:00' AS DATE)
{noformat}
This is incorrect. Such queries should throw an exception while parsing. But
before we can do that, we need to log a warning so we can detect usage.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)