Invention Grant
- Patent Title: Progressive optimization for implicit cast predicates
-
Application No.: US15855375Application Date: 2017-12-27
-
Publication No.: US10936625B2Publication Date: 2021-03-02
- Inventor: Terence P. Purcell , Thomas A. Beavin , Christopher J. Crone , Andrei F. Lurie
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Konrad, Raynes, Davda and Victor LLP
- Agent Janaki K. Davda
- Main IPC: G06F16/00
- IPC: G06F16/00 ; G06F16/28 ; G06F16/25 ; G06F16/22 ; G06F16/242 ; G06F16/2453

Abstract:
Provided are techniques for progressive optimization for implicit CAST predicates. In response to receiving a query with an original predicate comparing a character value of a character data type to a literal value of a numeric data type, a number of iterations is set to a length of the character data type. For each of the number of iterations, prefix predicates are generated based on that iteration and processed to identify a qualified index key in an index. Once the iterations are completed, the character value and the literal value are normalized. The original predicate with the normalized character value and the normalized literal value is applied starting at the qualified index key identified in a last iteration to generate a result set for the query. The result set is returned.
Public/Granted literature
- US20190197175A1 PROGRESSIVE OPTIMIZATION FOR IMPLICIT CAST PREDICATES Public/Granted day:2019-06-27
Information query