You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2022/10/05 05:49:00 UTC

[jira] [Closed] (JCR-4811) Measure query not working

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

Julian Reschke closed JCR-4811.
-------------------------------

> Measure query not working
> -------------------------
>
>                 Key: JCR-4811
>                 URL: https://issues.apache.org/jira/browse/JCR-4811
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>            Reporter: Nitul
>            Priority: Critical
>
> According to JCR query measure - https://jackrabbit.apache.org/oak/docs/query/grammar-sql2.html#measure 
>  The query result has two columns, one called ‘selector’ and one called ‘scanCount’. The result has at least two rows, one that represents the total (selector set to ‘query’), and one per selector used in the query.
> But when we execute this in JCR
> https://mvnrepository.com/artifact/javax.jcr/jcr/2.0
> Executing queryResult.getRows().hasNext() throws NullPointerException 
> Query : 
> measure SELECT *  FROM [nt:file] AS node WHERE ISCHILDNODE(node,[/apath]) 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)