Error:
org.apache.phoenix.exception.PhoenixParserException: ERROR 602 (42P00): Syntax error. Missing “EOF” at line 1, column 36.
Codes:
public class DimUtil {
public static JSONObject readDimFromPhoenix(Connection conn, String tableName, Long id) {
String sql = "select * from " + tableName + "where id=?";
Object[] args = {id.toString()};
//Get the query result and return
List<JSONObject> list = JdbcUtil.queryList(conn, sql, args, JSONObject.class);
return list.size()==1?list.get(0):new JSONObject();
}
}
Error analysis:
Solution:
Just add a space in front of where.
Read More:
- [Solved] .\main.go:3:6: missing function body .\main.go:4:1: syntax error: unexpected semicolon or newline be
- [Solved] pagehelper Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘LIMIT 1’
- [Solved] Rabbitmq Server Error: unable to perform an operation on node ‘rabbit@nscczzms‘. P
- ‘pre-mature EOF‘ : syntax error syntax error [How to Solve]
- ROS Gazabo Error: [ERROR]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/ ×65374;
- [Solved] Windows Android Studio Cannot Start Error: Internal error. Please refer to https://code.google.com/p/android/issue
- Mybatis Error: Cause: java.sql.SQLException: sql injection violation, syntax error: syntax error, expect EQ
- How to Solve Error: Missing type map configuration or unsupported mapping
- Maven package error: [WARNING] The POM for xxx is missing, no dependency inform
- [Solved] MindSpore Error: “TypeError: parse() missing 1 required positional.”
- [Solved] Android Room: Database Common Error ‘missing database’
- [Solved] jenkins-deleteDir Error (FilePath is missing)
- ERROR ITMS-90022: “Missing required icon file. [How to Solve]
- Bazel error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/flashroute/flashroute-2.p
- [Solved] Error in inherits(x, “theme”): argument “e2” is missing, with no default
- Vue Package Error: npm ERR! missing script: build
- XAMPP Error: Apache shutdown unexpectedly.This may be due to a blocked port, missing dependencies…
- [Solved] SyntaxError: Missing parentheses in call to ‘print‘. Did you mean print(e)?
- Exsi virtual machine is missing vmdk file error [How to Solve]