ndcuong869 opened a new issue, #15238:
URL: https://github.com/apache/iceberg/issues/15238
### Apache Iceberg version
1.10.1 (latest release)
### Query engine
Spark
### Please describe the bug 🐞
```python
CREATE OR REPLACE VIEW catalog.namespace.customer
AS SELECT *
FROM catalog.namespace.customer
```
The error:
```
Py4JJavaError: An error occurred while calling o160.sql.
: java.lang.NoSuchMethodError: 'void
org.apache.spark.sql.catalyst.analysis.ResolvedIdentifier.<init>(org.apache.spark.sql.connector.catalog.CatalogPlugin,
org.apache.spark.sql.connector.catalog.Identifier)'
at
org.apache.spark.sql.catalyst.analysis.RewriteViewCommands$ResolvedIdent$.unapply(RewriteViewCommands.scala:105)
at
org.apache.spark.sql.catalyst.analysis.RewriteViewCommands$$anonfun$apply$1.applyOrElse(RewriteViewCommands.scala:54)
at
org.apache.spark.sql.catalyst.analysis.RewriteViewCommands$$anonfun$apply$1.applyOrElse(RewriteViewCommands.scala:50)
at
org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.$anonfun$resolveOperatorsUpWithPruning$3(AnalysisHelper.scala:139)
at
org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(origin.scala:107)
```
The reason is Spark 4.1 ResolvedIdentifier added a third parameter 'output:
Seq[Attribute] = Nil'
### Willingness to contribute
- [x] I can contribute a fix for this bug independently
- [ ] I would be willing to contribute a fix for this bug with guidance from
the Iceberg community
- [ ] I cannot contribute a fix for this bug 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]