US2018203900A1PendingUtilityA1

Transforming a user-defined table function to a derived table in a database management system

56
Assignee: IBMPriority: Jan 14, 2017Filed: Dec 29, 2017Published: Jul 19, 2018
Est. expiryJan 14, 2037(~10.5 yrs left)· nominal 20-yr term from priority
G06F 16/2282G06F 16/24542G06F 17/30339G06F 17/30463
56
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

Disclosed aspects relate to transforming a user-defined table function (UDTF) to a derived table in a database management system (DBMS). It may be detected by the DBMS that a query indicates the UDTF. A derived table may be constructed from the UDTF. The derived table may be derived from a set of statements of the UDTF. The derived table may be introduced to the query to fulfill the UDTF. A query plan may be generated for the query by the DBMS. The query plan may be generated in response to introducing the derived table in the query.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
         1 . A computer-implemented method for transforming a user-defined table function (UDTF) to a derived table in a database management system (DBMS), the method comprising:
 detecting, by the DBMS, that a query indicates the UDTF;   constructing, from the UDTF, a derived table which is derived from a set of statements of the UDTF;   unwrapping the set of statements of the UDTF, wherein the unwrapping comprises:
 examining the set of statements of the UDTF; and 
 retrieving a set of data indicated by the set of statements of the UDTF; 
   introducing, to the query, the derived table to fulfill the UDTF, wherein, the derived table is introduced as a laterally correlated derived table, the introducing comprising:
 structuring the set of statements of the UDTF based on a query definition template; and 
 integrating the set of statements of the UDTF into the query as a subquery; 
   revising, in response to introducing the derived table to the query, the query using the derived table to streamline performance of the query; and   generating, by the DBMS in response to introducing the derived table in the query, a query plan for the query.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.