This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1452 - [XQuery]: "deterministic" indicator for external functions
Summary: [XQuery]: "deterministic" indicator for external functions
Status: CLOSED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Don Chamberlin
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: http://lists.w3.org/Archives/Public/p...
Whiteboard:
Keywords: futureConsideration
Depends on:
Blocks:
 
Reported: 2005-05-16 15:33 UTC by C. M. Sperberg-McQueen
Modified: 2005-09-29 11:19 UTC (History)
1 user (show)

See Also:


Attachments

Description C. M. Sperberg-McQueen 2005-05-16 15:33:24 UTC
[Copied into Bugzilla from the comments list by
CMSMcQ.  See also thread beginning at 
http://lists.w3.org/Archives/Public/public-qt-comments/2005May/0217.html] 

We propose to add an optional clause to the external function
declaration to indicate whether the external function always returns the
same results for given argument values ("deterministic").

 

An example use case would be to allow users to indicate that two
external functions embedded into xquery: f:random() and
f:verySlowDeterministicExternalWebService() should be treated
differently by the query processor.

 

That can be implemented by changing FunctionDecl to

 

[26]    FunctionDecl    ::=    "declare" "function" QName "(" ParamList?
(")" | (")" "as" SequenceType)) (EnclosedExpr | ("external" (<"not"
"deterministic"> | "deterministic")?))

 

Daniel.
Comment 1 Don Chamberlin 2005-06-10 17:34:50 UTC
On May 16, the Query Working Group decided that we do not yet have enough with 
external functions to justify adding a "deterministic" clause to the syntax of 
a function declaration. Your request for this functionality will be 
reconsidered in a future version of XQuery.

Please let us know whether you are satisfied with this resolution of your 
comment.