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

   ### 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
   
   Hi, 
   
   I updated the kyuubi to the latest, and tried to compile it with spark 4.0 
support. but I encountered below errors.
   
   ``` console
   [INFO] compiling 57 Scala sources and 1 Java source to 
/home/xxx/work.d/yyy/kyuubi/extensions/spark/kyuubi-spark-authz/target/scala-2.13/classes
 ...
   [ERROR] [Error] 
/home/xxx/work.d/yyy/kyuubi/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/rule/rowfilter/FilterDataSourceV2Strategy.scala:19:
 object Strategy is not a member of package org.apache.spark.sql
   [ERROR] [Error] 
/home/xxx/work.d/yyy/kyuubi/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/rule/rowfilter/FilterDataSourceV2Strategy.scala:23:
 not found: type Strategy
   [ERROR] [Error] 
/home/xxx/work.d/yyy/kyuubi/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtension.scala:58:
 type mismatch;
    found   : 
org.apache.kyuubi.plugin.spark.authz.rule.rowfilter.FilterDataSourceV2Strategy.type
    required: v1.StrategyBuilder
       (which expands to)  org.apache.spark.sql.SparkSession => 
org.apache.spark.sql.execution.SparkStrategy
   [ERROR] three errors found
   ```
   
   BTW, I used below commands to compile it
   
   ``` bash
   ./build/dist --name custom-name --tgz --flink-provided --hive-provided 
-Pspark-4.0 -Pscala-2.13
   ```
   
   
   ### Affects Version(s)
   
   master
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Server Configurations
   
   ```yaml
   
   ```
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   
   ```
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: notifications-unsubscr...@kyuubi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org
For additional commands, e-mail: notifications-h...@kyuubi.apache.org

Reply via email to