Closed imrehg closed 1 week ago
Thanks a lot @imrehg for the detailed reporting. While obvious, this is a case I had not planned indeed. The fix is pretty easy, thanks for the suggestion. I'll let you know when it's fixed!
It should now be fixed in the latest version! Thanks for reporting
pip install --upgrade --force-reinstall amphi-etl
or jupyterlab-amphi if you're using Jupyterlab
When adding e.g. a Postgres Input, I've added a multili
as the interface allows it as well:
Running the connector this way fails however with the error:
and it seems to be because the generated code incorrectly wraps the SQL query in quotes. The generated code reads:
which is incorrect indeed.
The correct wrapping could be something like using tripple doublequotes
"""..."""
, like the following in this case:This is not taking any cases of escaping into account, though, that might be relevant in more general cases, e.g.
r"""..."""
, or'''...'''
if the query contains double quotes.I've tested that the wrapping is indeed the issue, as when I adjusted the SQL query to be on a single line, it worked.
I'm using
amphi-etl==0.4.3
.