Wenjun Ruan created HIVE-29060:
----------------------------------
Summary: HivePreparedStatement cannot work well with ? in backticks
Key: HIVE-29060
URL: https://issues.apache.org/jira/browse/HIVE-29060
Project: Hive
Issue Type: Bug
Components: JDBC
Affects Versions: 4.0.1
Reporter: Wenjun Ruan
When I use HivePreparedStatement to execute below sql
```sql
SELECT `(ds|hr)?+.+` FROM ?
```
got exception
```java
java.sql.SQLException: Parameter #2 is unset
at
org.apache.hive.jdbc.HivePreparedStatement.updateSql(HivePreparedStatement.java:122)
at
org.apache.hive.jdbc.HivePreparedStatement.execute(HivePreparedStatement.java:89)
at
org.apache.hive.jdbc.TestHivePreparedStatement.testBackticksWithRegex(TestHivePreparedStatement.java:223)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)