Project scenario:
Using hive SQL query
Problem Description:
An error is reported when using * in data query, and the field cannot be found
select a.* from mydb.p_6 a;
Direct error reporting
Error: Error while compiling statement: FAILED: RuntimeException java.lang.RuntimeException: cannot find field (0~0 from [0:day, 1:0, 2:(0~0.1], 3:(0.1~0.2], 4:(0.2~0.3], 5:(0.3~0.4], 6:(0.4~0.5], 7:(0.5~0.6], 8:(0.6~0.7], 9:(0.7~0.8], 10:(0.8~0.9], 11:(0.9~1), 12:1] (state=42000,code=40000)
Cause analysis:
The field “0 ~ 0” cannot be found. When creating the table, the field is named (0 ~ 0.1], which leads to incomplete reading of the field,
Solution:
When creating a table, the field names should be standardized. Try not to bring commas and other symbols. Try to underline English letters and numbers
Read More:
- SQL Developer error: Unable to find a Java Virtual Machine solution
- Android connection to cloud MySQL error: java.lang.NoClassDefFoundError Failed resolution of LjavasqlSQLType
- Dbeaver connects hive to solve the problem that hive custom UDF functions cannot be used in SQL queries in dbeaver
- [Solved] MySQL Error: Can‘t find record in ‘order_form‘
- MYSQL Error: Can‘t find error-message file [How to Solve]
- How to Solve Error: Rsa Public Key not Find
- [Solved] MybatisPlus Error: Error querying database. Cause: java.lang.IndexOutOfBoundsException
- [Solved] ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘
- [Solved] dynamic-datasource can not find primary datasource
- [Solved] Daily further: database error: unknown column ‘model’ in ‘field list‘
- [Solved] Canal Error: Could not find first log file name in binary log index file
- RECEIVED ERROR PACKET: ERRNO = 1236, SQLSTATE = HY000 ERRMSG = COULD NOT FIND FIRST LOG FILE NAME IN BINARY LOG INDEX FILE
- ERROR 1054(42S22) Unknown column ‘password’ in ‘field list’ (Fixed)
- [Modified] Hive SQL Error: SQL ERROR [10004] [42000]: Error while compiling statement: FAILED: SemanticException [Error
- IDEA hive connect jdbc error [How to Solve]
- Mysql5.7.18.1 Error 1054 (42S22): Unknown Column’password’ In’field List’ When Changing User Password
- Hive install initialization error: Error: Duplicate key name ‘PCS_STATS_IDX‘ (state=42000,code=1061)
- [Solved] hive sql Error: ParseException in subquery source
- [Solved] pymysql.err.internalError: (1054, “Unknown column ‘LGD_xiaohong’ in ‘field list’”)
- [Solved] Sequelize DatabaseError: ER_WRONG_FIELD_WITH_GROUP: Expression #2 of SELECT list is not in GROUP