Commit 23e1a01
authored
[BABEL] Add hook to enable index matching through type casts (#774)
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#4868
Task: BABEL-6814
Authored-by: Rucha Kulkarni ruchask@amazon.com1 parent 372667e commit 23e1a01
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
2451 | 2453 | | |
2452 | 2454 | | |
2453 | 2455 | | |
2454 | | - | |
| 2456 | + | |
2455 | 2457 | | |
2456 | 2458 | | |
2457 | 2459 | | |
2458 | 2460 | | |
2459 | 2461 | | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
2460 | 2467 | | |
2461 | 2468 | | |
2462 | 2469 | | |
| |||
2491 | 2498 | | |
2492 | 2499 | | |
2493 | 2500 | | |
2494 | | - | |
| 2501 | + | |
2495 | 2502 | | |
2496 | 2503 | | |
2497 | 2504 | | |
2498 | 2505 | | |
2499 | 2506 | | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
2500 | 2512 | | |
2501 | 2513 | | |
2502 | 2514 | | |
| |||
| 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