Commit b154696
authored
[BABEL] Add hook to enable index matching through type casts (babelfish-for-postgresql#762)
Adding a hook in match_opclause_to_indexcol() that allows babelfish to
provide index clauses when the built-in logic cannot match an OpExpr to
an index column. This enables extensions to handle type-cast patterns
that prevent index usage due to operator family mismatches.
Extension PR: babelfish-for-postgresql/babelfish_extensions#4829
Issues Resolved
Task: BABEL-6814
Authored-by: Rucha Kulkarni ruchask@amazon.com1 parent cd314d6 commit b154696
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
2963 | 2965 | | |
2964 | 2966 | | |
2965 | 2967 | | |
2966 | | - | |
| 2968 | + | |
2967 | 2969 | | |
2968 | 2970 | | |
2969 | 2971 | | |
2970 | 2972 | | |
2971 | 2973 | | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
2972 | 2979 | | |
2973 | 2980 | | |
2974 | 2981 | | |
| |||
3003 | 3010 | | |
3004 | 3011 | | |
3005 | 3012 | | |
3006 | | - | |
| 3013 | + | |
3007 | 3014 | | |
3008 | 3015 | | |
3009 | 3016 | | |
3010 | 3017 | | |
3011 | 3018 | | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
3012 | 3024 | | |
3013 | 3025 | | |
3014 | 3026 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
0 commit comments