This is an automated email from the ASF dual-hosted git repository.
bowenliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 25e1a165b [KYUUBI #5100] [Minor] Fix unpaired quote in message pattern
25e1a165b is described below
commit 25e1a165bf73e155b553334c7b94ebc2eb88706e
Author: liangbowen <[email protected]>
AuthorDate: Thu Jul 27 18:25:33 2023 +0800
[KYUUBI #5100] [Minor] Fix unpaired quote in message pattern
### _Why are the changes needed?_
- Remove the existing single quote in message format which causes the
argument 0 is not used
- `A single quote itself must be represented by doubled single quotes ''
throughout a String.`
https://docs.oracle.com/javase/8/docs/api/java/text/MessageFormat.html
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including
negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run
test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests)
locally before make a pull request
Closes #5100 from bowenliang123/datatype-msg.
Closes #5100
8135ff146 [liangbowen] fix
Authored-by: liangbowen <[email protected]>
Signed-off-by: liangbowen <[email protected]>
---
.../main/java/org/apache/kyuubi/jdbc/hive/KyuubiPreparedStatement.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/KyuubiPreparedStatement.java
b/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/KyuubiPreparedStatement.java
index a0d4f3bfd..1e53f9401 100644
---
a/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/KyuubiPreparedStatement.java
+++
b/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/KyuubiPreparedStatement.java
@@ -168,7 +168,7 @@ public class KyuubiPreparedStatement extends
KyuubiStatement implements SQLPrepa
// Can't infer a type.
throw new KyuubiSQLException(
MessageFormat.format(
- "Can't infer the SQL type to use for an instance of {0}. Use
setObject() with an explicit Types value to specify the type to use.",
+ "Cannot infer the SQL type to use for an instance of {0}. Use
setObject() with an explicit Types value to specify the type to use.",
x.getClass().getName()));
}
}