Commit 1dde052
committed
refactor: drop empty-batch workaround in MetadataResultSets
Now that ArrowStreamReaderCursor.loadNextNonEmptyBatch (introduced
earlier on this branch as a pre-unify cursor fix) consumes empty
batches at the cursor seam, MetadataResultSets.writeArrowStream no
longer needs its own "skip writeBatch when rowCount==0" workaround:
the cursor handles the empty-only case correctly. Remove the special
case and always emit a batch.
Tightens the zeroRowOnlyBatchYieldsNoRows test docstring to match.1 parent 9f0b7c4 commit 1dde052
2 files changed
Lines changed: 5 additions & 6 deletions
File tree
- jdbc-core/src
- main/java/com/salesforce/datacloud/jdbc/core/metadata
- test/java/com/salesforce/datacloud/jdbc/core
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 99 | + | |
105 | 100 | | |
106 | 101 | | |
107 | 102 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments