Commit 24699cf
authored
Deprecate EnableArrow — Arrow always enabled except on AIX/IBM Power (#1450)
## Summary
`EnableArrow` connection property is deprecated and ignored. Arrow
serialization is now always enabled. Setting `EnableArrow=0` logs a
deprecation warning but has no effect.
### Behavior change
| Scenario | Before | After |
|----------|--------|-------|
| `EnableArrow=0` on Linux/Mac/Windows | Arrow disabled, columnar inline
results | Arrow enabled (value ignored), warning logged |
| `EnableArrow=0` on AIX / IBM Power (`ppc`) | Arrow disabled | Arrow
disabled (honoured — known native library issues) |
| `EnableArrow=1` or not set | Arrow enabled | Arrow enabled (no change)
|
| SEA + CloudFetch disabled | N/A | JSON inline results (via
`EnableQueryResultDownload=0`) |
### Changes
- `shouldEnableArrow()`: Always returns `true` except on AIX (`os.name`
contains `aix`) or IBM Power (`os.arch` contains `ppc`)
- Removed client-type check that forced Thrift when Arrow was disabled —
no longer needed
- Updated `DatabricksJdbcUrlParams` description to indicate deprecation
- Updated tests to reflect new behavior
- Added breaking change to `NEXT_CHANGELOG.md`
## Test plan
- [x] `DatabricksConnectionContextTest` — 120 tests pass (updated
`testEnableCloudFetch` + decision matrix)
- [x] `DatabricksSessionTest` + `DatabricksSdkClientTest` — 175 total,
all pass
This pull request was AI-assisted by Isaac.
---------
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>1 parent 7859816 commit 24699cf
10 files changed
Lines changed: 93 additions & 189 deletions
File tree
- src
- main/java/com/databricks/jdbc
- api/impl
- common
- test
- java/com/databricks/jdbc
- api/impl
- integration/fakeservice/tests
- resources/sqlexecapi/sqlexecapiintegrationtests/testjsoninlinechunkedresults_withoutarrow/mappings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
505 | 508 | | |
506 | 509 | | |
507 | 510 | | |
508 | | - | |
509 | | - | |
| 511 | + | |
| 512 | + | |
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
| |||
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
672 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
673 | 703 | | |
674 | 704 | | |
675 | 705 | | |
| |||
1198 | 1228 | | |
1199 | 1229 | | |
1200 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1201 | 1238 | | |
1202 | 1239 | | |
1203 | 1240 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
357 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
358 | 374 | | |
359 | 375 | | |
360 | 376 | | |
| |||
946 | 962 | | |
947 | 963 | | |
948 | 964 | | |
949 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
950 | 968 | | |
951 | 969 | | |
952 | 970 | | |
| |||
968 | 986 | | |
969 | 987 | | |
970 | 988 | | |
971 | | - | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
972 | 992 | | |
973 | 993 | | |
974 | 994 | | |
| |||
1104 | 1124 | | |
1105 | 1125 | | |
1106 | 1126 | | |
1107 | | - | |
| 1127 | + | |
| 1128 | + | |
1108 | 1129 | | |
1109 | 1130 | | |
1110 | 1131 | | |
1111 | | - | |
| 1132 | + | |
1112 | 1133 | | |
1113 | 1134 | | |
1114 | 1135 | | |
| |||
Lines changed: 0 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
43 | | - | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
| |||
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
66 | | - | |
67 | | - | |
68 | 60 | | |
69 | | - | |
70 | | - | |
71 | 61 | | |
72 | | - | |
73 | 62 | | |
74 | 63 | | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
78 | 67 | | |
79 | | - | |
80 | 68 | | |
81 | | - | |
82 | 69 | | |
83 | | - | |
84 | 70 | | |
85 | | - | |
86 | 71 | | |
87 | | - | |
88 | 72 | | |
89 | 73 | | |
90 | 74 | | |
| |||
235 | 219 | | |
236 | 220 | | |
237 | 221 | | |
238 | | - | |
239 | 222 | | |
240 | | - | |
241 | 223 | | |
242 | 224 | | |
243 | 225 | | |
| |||
Lines changed: 8 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 4 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
This file was deleted.
This file was deleted.
0 commit comments