john_sequeira
06/05/2023, 4:16 PMproperty_names = list(self.conform_schema(schema)["properties"].keys())
statement = dedent(
f"""\
INSERT INTO {full_table_name}
({", ".join(property_names)})
VALUES ({", ".join([f":{name}" for name in property_names])})
"""
)
For running inserts. The problem I’m hitting is that {name} has spaces, so this column “a b c” ends up as :a b c
in the sql statement, and sqlalchemy croaks.
I found someone with a slightly similar issue (I was also thinking of mapping actual column names to slugify-ied names for params), but it’s not obvious what the fix is. https://github.com/singer-io/tap-google-sheets/issues/33
I can probably tweak the singer sdk to DWIM but is there a better way?pat_nadolny
06/06/2023, 2:49 PMedgar_ramirez_mondragon
06/06/2023, 2:51 PMjohn_sequeira
06/07/2023, 1:19 PM