# JDBC Streaming with list parameter

**URL:** <https://discuss.elastic.co/t/jdbc-streaming-with-list-parameter/307546>\
**Category:** Logstash\
**Tags:** jdbc\
**Created:** [June 17, 2022, 8:43pm UTC](https://discuss.elastic.co/t/jdbc-streaming-with-list-parameter/307546 "2022-06-17T20:43:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav\_vivek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaurav_vivek/32/107208_2.png) [@gaurav\_vivek](https://discuss.elastic.co/u/gaurav_vivek)\
**Post date:** [June 17, 2022, 8:43pm UTC](https://discuss.elastic.co/t/jdbc-streaming-with-list-parameter/307546/1 "2022-06-17T20:43:44Z")

</div>

I have to pass a list in JDBC steaming query for Oracle, since the list can have more than 1000 record so i cannot use in query .i.e. select name from table where id in (..)  
I tried two option

1. use tuple : Create tuple and pass as parameter . look like logstash don't support tuple
2. creating query in ruby filter : i created required query in ruby filter and pass that string in statement like ' statement=\>"%{[query\_oracle]}"'  
but it gave oracle error non supported sql 92 . most probably actual query is not going .

Is there any other approach and make above option work ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 15, 2022, 8:44pm UTC](https://discuss.elastic.co/t/jdbc-streaming-with-list-parameter/307546/2 "2022-07-15T20:44:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
