You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, there are two sheets in this Excel file. I wish to read all the cells as data, so I use this option "open_options=['HEADERS=DISABLE', 'FIELD_TYPES=STRING'])".
The results are different for the two sheets. The result of sheet "2" diables the header, which is correct. But the result of sheet "3" still uses 1st row as head, which is wrong. I don't see any difference between sheet "2" and sheet "3" to cause the different results.
I ran into a very similar issue attempting to read a file with multiple sheets, where the first sheet respects HEADERS=DISABLE but not for the second sheet.
I seem to be able to work around it by exporting the sheet of interest to a single sheeted xlsx file and then reading the exported xlsx. Not great but I can possibly live with it.
D COPY (select * from st_read('file.xlsx', layer = 'sheet')) TO 'tempoutput.xlsx' WITH (FORMAT GDAL, DRIVER 'xlsx');
DUCKDB_READ_XLSX_BUG.xlsx
As you can see, there are two sheets in this Excel file. I wish to read all the cells as data, so I use this option "open_options=['HEADERS=DISABLE', 'FIELD_TYPES=STRING'])".
The results are different for the two sheets. The result of sheet "2" diables the header, which is correct. But the result of sheet "3" still uses 1st row as head, which is wrong. I don't see any difference between sheet "2" and sheet "3" to cause the different results.
As you can see from the results, I am using python 3.12.3 and Duckdb v0.10.3.
The correct results should be that both sheet "2" and sheet "3" have the same head, like "Field1", "Field2", etc.
Thank you for your consideration!
The text was updated successfully, but these errors were encountered: