mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
A LazySimpleSerDe table over headerless TSV came back as column00, column01 and the view's projection failed to bind: Athena's views were built with readExpression, which ignored the table's CSV options (field.delim, skip.header.line.count) that only Redshift Spectrum's read plan applied. Views now read such a table with read_csv and those options, naming the file columns after the declared data columns, and give each data column its declared type with TRY_CAST, NULL for a value the type cannot hold, as LazySimpleSerDe does. Every query also built a view for every Glue table, and DuckDB binds each view before running the query, so one table whose view could not be built failed all queries. Views are now built only for the tables the query names, or for every table when it reads information_schema or is a SHOW statement.