Repository navigation
|
I'm trying to use GenericTransfer to insert rows from a table to another using MS SQL. Suppose there are two toy tables: Specifically, our goal is to copy all the rows from Here, we've also written I can't imagine the placeholder value simply being a bug, so what am I doing wrong i.e., how to use GenericTransfer? |
Replies: 1 comment 6 replies
|
I think MsSQLHook lacks the proper implementaiton of the _generate_insert_sql . Every database has it's own form of prepared statements - Postgres/Mysql use '%s' (and this is the default implementation) , mssql uses ? - and that's why _generate_insert_sql needs to be provided by Hooks that do not support '%s' syntax. I think the best way woudl be to add a PR fixing it. |
I think MsSQLHook lacks the proper implementaiton of the _generate_insert_sql . Every database has it's own form of prepared statements - Postgres/Mysql use '%s' (and this is the default implementation) , mssql uses ? - and that's why _generate_insert_sql needs to be provided by Hooks that do not support '%s' syntax. I think the best way woudl be to add a PR fixing it.