[
https://issues.apache.org/jira/browse/JENA-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14308851#comment-14308851
]
Andy Seaborne commented on JENA-630:
------------------------------------
Observation: {{now}} is a constant across a query, so are {{e()}} and {{pi()}}.
The others in the test are indeed not constant (nor proper functions).
JENA-880 is a suggestion to add marker interfaces to indicate that something is
not a strict function, whether because it is not determined solely by it's
arguments or because arguments are evaluated in a non-strict way (e.g. delayed
until needed).
> Do constant folding as part of query optimisation
> -------------------------------------------------
>
> Key: JENA-630
> URL: https://issues.apache.org/jira/browse/JENA-630
> Project: Apache Jena
> Issue Type: Improvement
> Components: ARQ
> Affects Versions: Jena 2.11.1
> Reporter: Rob Vesse
> Assignee: Rob Vesse
> Priority: Minor
> Fix For: Jena 2.11.2
>
> Attachments: DevMain.java, ExprTransformConstantFold.java,
> JENA-630-refactor.patch
>
>
> Currently Jena does not automatically simplify expressions by constant
> folding even though the function API actually has support for this already
> baked into it.
> This issue will track work to integrate a transform for this into the
> standard optimiser.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)