Effectively and efficiently supporting XML sequence type and XQuery sequence natively in a SQL system
First Claim
1. A method of processing a Structured Query Language (SQL) query containing an invocation of XQuery, comprising:
- processing a query that contains at least one SQL function that either (a) has an input parameter that is of Extensible Markup Language (XML) sequence type or (b) has an output parameter that is of XML sequence type; and
evaluating the SQL function.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for effectively and efficiently supporting XML sequence type and XQuery sequence natively in a SQL system are described. According to one aspect, SQL functions that correctly handle XML sequences are provided. Thus, XML sequences are handled effectively. According to another aspect, rules for simplifying an abstract syntax tree (AST) that represents one or more such SQL functions are provided. For each such SQL function that is represented in an AST that represents a SQL query, one or more rules that are relevant to that SQL function are determined. Relevant rules are applied to the representation of the SQL function within the AST. Through the application of the rules to the representations of the SQL functions within the AST, the AST is modified in a manner that simplifies the AST prior to the evaluation of the AST at query execution time. Thus, XML sequences are handled efficiently.
-
Citations
21 Claims
-
1. A method of processing a Structured Query Language (SQL) query containing an invocation of XQuery, comprising:
-
processing a query that contains at least one SQL function that either (a) has an input parameter that is of Extensible Markup Language (XML) sequence type or (b) has an output parameter that is of XML sequence type; and
evaluating the SQL function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 20)
-
-
12. A method of simplifying an abstract syntax tree that represents a query, comprising:
-
determining whether the abstract syntax tree includes a representation of a first Structured Query Language (SQL) function that either (a) has an input parameter that is of Extensible Markup Language (XML) sequence type or (b) has an output parameter that is of XML sequence type; and
in response to a determination that the abstract syntax tree includes the representation, determining one or more rules that apply to the first SQL function; and
prior to evaluating the abstract syntax tree to execute the query, modifying the abstract syntax tree by applying the one or more rules to the first SQL function in the abstract syntax tree. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 21)
-
Specification