Skip to content

Commit

Permalink
Skip varint in checks connected to test_all_types
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Sep 17, 2024
1 parent db04b37 commit 1eeeef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/columns.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Column Types', function() {

it('should prepare a statement and return the columns and their types', function(done) {
// we dont include the large_enum and small_enum since they are huge and test the same code path as the small_enum
var stmt = db.prepare("SELECT * EXCLUDE(medium_enum, large_enum, fixed_int_array, fixed_varchar_array, fixed_nested_int_array, fixed_nested_varchar_array, fixed_struct_array, struct_of_fixed_array, fixed_array_of_int_list, list_of_fixed_int_array) FROM test_all_types()", function(err: null | Error) {
var stmt = db.prepare("SELECT * EXCLUDE(medium_enum, large_enum, fixed_int_array, fixed_varchar_array, fixed_nested_int_array, fixed_nested_varchar_array, fixed_struct_array, struct_of_fixed_array, fixed_array_of_int_list, list_of_fixed_int_array, varint) FROM test_all_types()", function(err: null | Error) {
if (err) done(new Error('Query failed unexpectedly'));

let cols = stmt.columns();
Expand Down
2 changes: 1 addition & 1 deletion test/test_all_types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function get_all_types(): Promise<string[]> {
return new Promise((resolve, reject) => {
const conn = new duckdb.Database(":memory:");
conn.all(
"describe select * EXCLUDE(fixed_int_array, fixed_varchar_array, fixed_nested_int_array, fixed_nested_varchar_array, fixed_struct_array, struct_of_fixed_array, fixed_array_of_int_list, list_of_fixed_int_array) from test_all_types()",
"describe select * EXCLUDE(fixed_int_array, fixed_varchar_array, fixed_nested_int_array, fixed_nested_varchar_array, fixed_struct_array, struct_of_fixed_array, fixed_array_of_int_list, list_of_fixed_int_array, varint) from test_all_types()",
(error: DuckDbError | null, data: TableData) => {
if (error) reject(error);
resolve(data.map((row) => row.column_name));
Expand Down

0 comments on commit 1eeeef8

Please sign in to comment.