Skip to content

INTERNAL Error if types is not provided #50

@carlopi

Description

@carlopi

Hi and thanks for sending the extension trough. I was curious and trying this out, but I bumped in this, and though of reporting it:

LOAD sheetreader;
FROM sheetreader('path/to/test.xlsx');

Returns for me:

INTERNAL Error: Failed to bind "sheetreader": Table function must return at least one column
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
For more information, see https://duckdb.org/docs/dev/internal_errors

It seems that providing types is all it's needed to solve the problem:

LOAD sheetreader;
FROM sheetreader('path/to/test.xlsx', types=[BOOLEAN,VARCHAR]);

Unsure whether this needs actual solving or just forcing parameter to be provided.
File was generated like:

LOAD spatial;
COPY (SELECT 1337 as i, 'foobar' as f) TO '__TEST_DIR__/test.xlsx' WITH (FORMAT GDAL, DRIVER 'xlsx');

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions