I am new in streams, just want to ask a question about select in database. can i use select with "where" for each tuple value.
i implement a small topo, receive tuple and use the value in tuple to query the other related data from DB.
# include 3 columns device_id, weatherStationId and rainStationId
table_name = "joinTest"
sql_select = 'SELECT device_id, weatherStationId, rainStationId FROM '+ table_name +' where device_id=\'?\''
tuple_schema = StreamSchema("tuple<rstring device_id>")
trdata = st.map(lambda tpl: (tpl["device_id"],), schema=tuple_schema)
stResults = db.run_statement(name="select", schema='tuple<rstring device_id, rstring weatherStationId, rstring rainStationId>', stream=trdata, sql=sql_select, sql_params="device_id" ,credentials = dbcredentials, jdbc_driver_lib="/opt/jdbc/mssql-jdbc.jar", jdbc_driver_class="com.microsoft.sqlserver.jdbc.SQLServerDriver")
but there is nothing response and i also have no idea to debug. i can't check the sql is correct or not. or i ca't use sql_params for select?