Commit fc325ee
committed
Cross reference the cast matrix against openGauss pg_cast.h to confirm numeric_int4 dtoi4 ftoi4 bpchar and namein OIDs match PostgreSQL exactly while explicitly calling out the openGauss only bool to numeric and numeric to bool cast entries 6433 6434 that the evaluator deliberately treats as conservative narrowing since aligning with PostgreSQL rejection means routing falls through to broadcast on openGauss rather than picking the casted 0 or 1 value
1 parent 148a12f commit fc325ee
2 files changed
Lines changed: 23 additions & 6 deletions
File tree
- features/sharding/core/src
- main/java/org/apache/shardingsphere/sharding/route/engine/condition/engine
- test/java/org/apache/shardingsphere/sharding/route/engine/condition/engine
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
414 | 424 | | |
415 | 425 | | |
416 | 426 | | |
| |||
0 commit comments