near token'cardNumber' .. errorencountered
23/08/30 15:16:58 ERROR ql.Driver: FAILED: SemanticExceptio on 1:27 '[eventcode, customerId, eventTime, accountNumber, scenario Code, cardNumber]’ in insert schema specification are not f found among regular columns of aaabbb.hive_eventpush nor dynamic pa rtition columns.. Error encountered near token 'cardNumber’
org.apache.hadoop.hive.ql.parse.SemanticException: 1:27 '[e eventCode, customerId, eventTime, accountNumber, scenariocode, card Number]' in insert schema specification are not found among regular columns of aaabbb.hive_eventpush nor dynamic partition co lumns.. Error encountered near token'cardNumber'
FAILED: SemanticException 1:30 '[customerid, car dNumber]' in insert schema specification are not found among regular colum nor dynamic partition columns.. Error encountere ed near token 'cardnumber'
遇到的问题
FAILED: SemanticException 1:46 ‘[field1, field2]’ in insert schema specification are not found among regular columns of databasesName.tableName nor dynamic partition columns… Error encountered near token ‘field2’
解决办法:
原sql
insert into tableName(Field1,Field2) values(‘x1’,‘x2’)文章来源:https://uudwc.com/A/jrrP9
将sql中字段名改为小写
insert into tableName(field1,field2) values(‘x1’,‘x2’)
文章来源地址https://uudwc.com/A/jrrP9