# Bug of /\_nlpcn/sql with subqueries

**URL:** <https://discuss.elastic.co/t/bug-of-nlpcn-sql-with-subqueries/333243>\
**Category:** Elasticsearch\
**Created:** [May 12, 2023, 2:05am UTC](https://discuss.elastic.co/t/bug-of-nlpcn-sql-with-subqueries/333243 "2023-05-12T02:05:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuchsh01](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@liuchsh01](https://discuss.elastic.co/u/liuchsh01)\
**Post date:** [May 12, 2023, 2:05am UTC](https://discuss.elastic.co/t/bug-of-nlpcn-sql-with-subqueries/333243/1 "2023-05-12T02:05:25Z")

</div>

After using the /\_nlpcn/sql interface to query the sql with subqueries, some subsequent queries will time out.

sql sample:  
SELECT count(\*) FROM a\_index where someCode in (SELECT code FROM b\_index where someType ='ttt')

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 12, 2023, 3:51am UTC](https://discuss.elastic.co/t/bug-of-nlpcn-sql-with-subqueries/333243/2 "2023-05-12T03:51:44Z")

</div>

This seem related to some third party plugin that is not supported here. I would recommend you bring this up with the creator of the plugin.

---

<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:** [June 9, 2023, 3:52am UTC](https://discuss.elastic.co/t/bug-of-nlpcn-sql-with-subqueries/333243/3 "2023-06-09T03:52:02Z")

</div>

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