Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.10.0
-
None
Description
Currently storm-jdbc insert bolt/state only supports to specify a table name and constructs a query of the form "insert into tablename values(?,?,?)" based on table's schema. This fails to support use cases like "insert into as select * from" or special cases like Phoenix that has a jdbc driver but only supports "upsert into".
We should add a way so the users can specify their own custom query for the insert bolt. This was already pointed out by revans2 during the PR review and we now have concrete cases that will be benefited by this feature.