ActianCorp / spark-vector

Repository for the Spark-Vector connector
Apache License 2.0
20 stars 9 forks source link

Make insert into external table <select-query> as prepared statement #31

Closed cbarca closed 8 years ago

cbarca commented 8 years ago

Now, the select statement is erroneously composed by simply replacing each "?" with its correspondent value. However, this won't work for string and dates for example.

The insert query should be prepared and executed afterwards using only the params/values instead, though for now this is throwing "Vector has failed with exception: line 1, The dynamically defined statement 'jdbc_stmt_0_1' is either a SELECT statement that cannot be EXECUTED, or a non-SELECT statement that cannot be OPENED."