[ 
https://issues.apache.org/jira/browse/OAK-12370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller reassigned OAK-12370:
------------------------------------

    Assignee: Thomas Mueller

> 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
>            Assignee: Thomas Mueller
>            Priority: Minor
>
> {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
(v10.3.26#10030026)

Reply via email to