@@ -62,6 +62,7 @@ import {
62
62
DuckDBTimestampSecondsType ,
63
63
DuckDBTimestampSecondsVector ,
64
64
DuckDBTimestampTZType ,
65
+ DuckDBTimestampTZVector ,
65
66
DuckDBTimestampType ,
66
67
DuckDBTimestampVector ,
67
68
DuckDBTinyIntType ,
@@ -85,6 +86,7 @@ import {
85
86
DuckDBVarCharType ,
86
87
DuckDBVarCharVector ,
87
88
DuckDBVarIntType ,
89
+ DuckDBVarIntVector ,
88
90
DuckDBVector ,
89
91
configurationOptionDescriptions ,
90
92
version
@@ -145,7 +147,7 @@ const MinTimeTZOffset = -MaxTimeTZOffset;
145
147
const MinTimeTZ = new DuckDBTimeTZValue ( MinTimeTZMicroseconds , MaxTimeTZOffset ) ;
146
148
const MaxTimeTZ = new DuckDBTimeTZValue ( MaxTimeTZMicroseconds , MinTimeTZOffset ) ;
147
149
const MinTS_S = BigInt ( - 9223372022400 ) ; // from test_all_types() select epoch(timestamp_s)::bigint;
148
- const MaxTS_S = BigInt ( 9223372036854 ) ;
150
+ const MaxTS_S = BigInt ( 9223372036854 ) ;
149
151
const MinTS_MS = MinTS_S * BI_1000 ;
150
152
const MaxTS_MS = ( MaxInt64 - BI_1 ) / BI_1000 ;
151
153
const MinTS_US = MinTS_MS * BI_1000 ;
@@ -154,31 +156,13 @@ const TS_US_Inf = MaxInt64;
154
156
const MinTS_NS = - 9223286400000000000n ;
155
157
const MaxTS_NS = MaxInt64 - BI_1 ;
156
158
const MinFloat32 = Math . fround ( - 3.4028235e+38 ) ;
157
- const MaxFloat32 = Math . fround ( 3.4028235e+38 ) ;
159
+ const MaxFloat32 = Math . fround ( 3.4028235e+38 ) ;
158
160
const MinFloat64 = - Number . MAX_VALUE ;
159
161
const MaxFloat64 = Number . MAX_VALUE ;
160
162
const MinUUID = MinInt128 ;
161
163
const MaxUUID = MaxInt128 ;
162
- const MinVarInt = new Uint8Array ( [ 0x7F , 0xFF , 0x7F ,
163
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x07 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
164
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
165
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
166
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
167
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
168
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
169
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
170
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
171
- ] ) ;
172
- const MaxVarInt = new Uint8Array ( [ 0x80 , 0x00 , 0x80 ,
173
- 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xF8 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
174
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
175
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
176
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
177
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
178
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
179
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
180
- 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
181
- ] ) ;
164
+ const MinVarInt = - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368n
165
+ const MaxVarInt = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368n ;
182
166
183
167
async function sleep ( ms : number ) : Promise < void > {
184
168
return new Promise ( ( resolve ) => {
@@ -544,15 +528,15 @@ describe('api', () => {
544
528
assertValues ( chunk , 8 , DuckDBUSmallIntVector , [ MinUInt16 , MaxUInt16 , null ] ) ;
545
529
assertValues ( chunk , 9 , DuckDBUIntegerVector , [ MinUInt32 , MaxUInt32 , null ] ) ;
546
530
assertValues ( chunk , 10 , DuckDBUBigIntVector , [ MinUInt64 , MaxUInt64 , null ] ) ;
547
- assertValues ( chunk , 11 , DuckDBBlobVector , [ MinVarInt , MaxVarInt , null ] ) ;
531
+ assertValues ( chunk , 11 , DuckDBVarIntVector , [ MinVarInt , MaxVarInt , null ] ) ;
548
532
assertValues ( chunk , 12 , DuckDBDateVector , [ MinDate , MaxDate , null ] ) ;
549
533
assertValues ( chunk , 13 , DuckDBTimeVector , [ MinTime , MaxTime , null ] ) ;
550
534
assertValues ( chunk , 14 , DuckDBTimestampVector , [ MinTS_US , MaxTS_US , null ] ) ;
551
535
assertValues ( chunk , 15 , DuckDBTimestampSecondsVector , [ MinTS_S , MaxTS_S , null ] ) ;
552
536
assertValues ( chunk , 16 , DuckDBTimestampMillisecondsVector , [ MinTS_MS , MaxTS_MS , null ] ) ;
553
537
assertValues ( chunk , 17 , DuckDBTimestampNanosecondsVector , [ MinTS_NS , MaxTS_NS , null ] ) ;
554
538
assertValues ( chunk , 18 , DuckDBTimeTZVector , [ MinTimeTZ , MaxTimeTZ , null ] ) ;
555
- assertValues ( chunk , 19 , DuckDBTimestampVector , [ MinTS_US , MaxTS_US , null ] ) ;
539
+ assertValues ( chunk , 19 , DuckDBTimestampTZVector , [ MinTS_US , MaxTS_US , null ] ) ;
556
540
assertValues ( chunk , 20 , DuckDBFloatVector , [ MinFloat32 , MaxFloat32 , null ] ) ;
557
541
assertValues ( chunk , 21 , DuckDBDoubleVector , [ MinFloat64 , MaxFloat64 , null ] ) ;
558
542
assertValues ( chunk , 22 , DuckDBDecimal2Vector , [
0 commit comments