We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be57de1 commit c7ef34fCopy full SHA for c7ef34f
extensions/positron-duckdb/src/extension.ts
@@ -878,7 +878,10 @@ END`;
878
const fetchValues = (adapter: (field: Vector<any>, i: number) => ColumnValue) => {
879
if ('first_index' in spec) {
880
// There may be fewer rows available than what was requested
881
- const lastIndex = Math.min(spec.last_index, queryResult.numRows - 1);
+ const lastIndex = Math.min(
882
+ spec.last_index,
883
+ spec.first_index + queryResult.numRows - 1
884
+ );
885
886
const columnValues: Array<string | number> = [];
887
// Value range, we need to extract the actual slice requested
0 commit comments