Jackhjf opened a new issue, #4341:
URL: https://github.com/apache/kyuubi/issues/4341

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   Configure the mask policy on the ranger, and when executing sql through 
Spark, an error is reported
   
   
   <img width="1532" alt="image" 
src="https://user-images.githubusercontent.com/33471639/219309415-498c9451-cde7-4730-b6dd-41ecd97ff0c2.png";>
   
   spark-sql> select name from iceberg_spark.test_copy;
   
   
   ### Affects Version(s)
   
   master
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   Error in query: Resolved attribute(s) name#6 missing from id#5,name#7 in 
operator !Project [name#6]. Attribute(s) with the same name appear in the 
operation: name. Please check if the right attribute(s) are used.;
   !Project [name#6]
   +- SubqueryAlias spark_catalog.iceberg_spark.test_copy
      +- Project [id#5, md5(cast(name#6 as binary)) AS name#7]
         +- RowFilterAndDataMaskingMarker
            +- RelationV2[id#5, name#6] spark_catalog.iceberg_spark.test_copy
   ```
   
   
   ### Kyuubi Engine Log Output
   
   _No response_
   
   ### Kyuubi Server Configurations
   
   _No response_
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   spark.sql.extensions 
org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions,org.apache.kyuubi.plugin.spark.authz.ranger.RangerSparkExtension
   ```
   
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to