[ https://issues.apache.org/jira/browse/HIVE-23182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17102763#comment-17102763 ]
David Mollitor commented on HIVE-23182: --------------------------------------- [~jfs], [~jcamachorodriguez] set me straight on this. It's actually not possible to do a default value here. My [incorrect] understanding was that "column" mode was a super-set of "none" mode. Actually, they are a bit different and not really compatible in this way. The context always needs to be present and the correct mode needs to be applied. Possibly the easiest thing is to use {{Predicate.checkState}} and make sure the configuration is not 'null'. If it is, an error will be generated during qtests and you'll get a stack trace showing you where the issues are. > Semantic Exception: rule Identifier failed predicate allowQuotedId > ------------------------------------------------------------------ > > Key: HIVE-23182 > URL: https://issues.apache.org/jira/browse/HIVE-23182 > Project: Hive > Issue Type: Improvement > Reporter: David Mollitor > Priority: Major > Attachments: Querying a Hive Table (via Hiveserver2) with Colum... - > Cloudera Community.pdf > > > Querying a Hive Table (via Hiveserver2) with Column Masking enabled via > Ranger Hive Plugin returns with an error. > {code:none} > [42000]: Error while compiling statement: FAILED: SemanticException > org.apache.hadoop.hive.ql.parse.ParseException: line 1:62 rule Identifier > failed predicate: {allowQuotedId()}? line 1:74 rule Identifier failed > predicate: {allowQuotedId()}? line 1:94 rule Identifier failed predicate: > {allowQuotedId()}? line 1:117 rule Identifier failed predicate: > {allowQuotedId()}? > {code} > https://community.cloudera.com/t5/Support-Questions/Querying-a-Hive-Table-via-Hiveserver2-with-Column-Masking/td-p/167260 -- This message was sent by Atlassian Jira (v8.3.4#803005)