Skip to content

Commit

Permalink
[spark] Fix compatibility with spark3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Zouxxyy committed Nov 15, 2023
1 parent bb2f7d8 commit 0cdf0d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@

package org.apache.paimon.spark.analysis;

import org.apache.spark.SparkThrowableHelper;
import org.apache.spark.sql.connector.catalog.Identifier;

import java.util.Collections;

/** Thrown by a catalog when a stored procedure cannot be found. */
public class NoSuchProcedureException extends RuntimeException {

public NoSuchProcedureException(Identifier identifier) {
super(
SparkThrowableHelper.getMessage(
"Procedure " + identifier + " is not found", Collections.emptyMap()));
super("Procedure " + identifier + " is not found");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ case class PaimonDynamicPartitionOverwriteCommand(
).run(sparkSession)
}

override def storeAnalyzedQuery(): Command = copy(query = query)
// Do not annotate with override here to maintain compatibility with Spark 3.3-.
def storeAnalyzedQuery(): Command = copy(query = query)
}

0 comments on commit 0cdf0d7

Please sign in to comment.