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
Seed models that contain columns with special characters in them are currently not handled properly. It seems like we're trying to parse the CSV column names using maybe_parse at some point during loading, which can cause a ParseError instead of converting the "unsafe" identifiers into quoted columns.
This can be demonstrated using the example project, by simply renaming event_date to event_date. in the CSV file. This is the error we currently get:
sqlglot.errors.ParseError: Required keyword: 'this' missing for <class 'sqlglot.expressions.Column'>. Line 1, Col: 11.
event_date.
To fix this, my guess is that we should use to_identifier or something similar, to ensure we'll simply produce a quoted identifier instead of crashing.
The text was updated successfully, but these errors were encountered:
Context: #2634
Seed models that contain columns with special characters in them are currently not handled properly. It seems like we're trying to parse the CSV column names using
maybe_parse
at some point during loading, which can cause aParseError
instead of converting the "unsafe" identifiers into quoted columns.This can be demonstrated using the example project, by simply renaming
event_date
toevent_date.
in the CSV file. This is the error we currently get:To fix this, my guess is that we should use
to_identifier
or something similar, to ensure we'll simply produce a quoted identifier instead of crashing.The text was updated successfully, but these errors were encountered: