# JDBC PreparedStatement fails. Cannot convert RexNode to equivalent Dremio expression

**URL:** <https://community.dremio.com/t/jdbc-preparedstatement-fails-cannot-convert-rexnode-to-equivalent-dremio-expression/6567>\
**Category:** Uncategorized\
**Created:** [November 10, 2020, 11:14pm UTC](https://community.dremio.com/t/jdbc-preparedstatement-fails-cannot-convert-rexnode-to-equivalent-dremio-expression/6567 "2020-11-10T23:14:58Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![Benny\_Chow](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/benny_chow/32/5527_2.png) [@Benny\_Chow](https://community.dremio.com/u/Benny_Chow)\
**Post date:** [January 25, 2025, 4:38am UTC](https://community.dremio.com/t/jdbc-preparedstatement-fails-cannot-convert-rexnode-to-equivalent-dremio-expression/6567/29 "2025-01-25T04:38:58Z")

</div>

Some good news here:

> [@Is parameterized SQL not supported by Dremio?](https://community.dremio.com/t/is-parameterized-sql-not-supported-by-dremio/4650/22):
>
> Parameterized prepared statements has already been released to Dremio Cloud and the documentation is here: [JDBC Driver for Arrow Flight SQL | Dremio Documentation](https://docs.dremio.com/cloud/sonar/client-apps/drivers/arrow-flight-sql-jdbc/#parameterized-queries-with-prepared-statements) The same docs should apply to v26 which is targeted for 2025. Regarding the implementation, the primary driver was security and preventing SQL injection attacks. Parameterized SELECT statement will also benefit from the existing plan cache feature.

---

_[View the full topic](https://community.dremio.com/t/jdbc-preparedstatement-fails-cannot-convert-rexnode-to-equivalent-dremio-expression/6567)._
