[
https://issues.apache.org/jira/browse/OAK-6676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16167678#comment-16167678
]
Dirk Rudolph commented on OAK-6676:
-----------------------------------
I'm going to provide a patch with a unit test soon.
> rep:facet doesn't work in combination with aliases in JCR-SQL2
> --------------------------------------------------------------
>
> Key: OAK-6676
> URL: https://issues.apache.org/jira/browse/OAK-6676
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Affects Versions: 1.6.1
> Reporter: Dirk Rudolph
> Priority: Minor
>
> Within
> [SelectorImpl#createFilter()|http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/SelectorImpl.java?view=markup#l389]
> the columnName is used to determine wether to add a indicating restriction
> for facets or not.
> So using query like
> {code}
> select [rep:facet(tags)] as facets from ...
> {code}
> Will not contain facets.
> Same applies for {{rep:excerpt}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)