aokolnychyi commented on code in PR #52599:
URL: https://github.com/apache/spark/pull/52599#discussion_r2449644689
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ReplaceTableExec.scala:
##########
@@ -36,14 +36,13 @@ case class ReplaceTableExec(
partitioning: Seq[Transform],
tableSpec: TableSpec,
orCreate: Boolean,
- invalidateCache: (TableCatalog, Table, Identifier) => Unit) extends
LeafV2CommandExec {
+ invalidateCache: (TableCatalog, Identifier) => Unit) extends
LeafV2CommandExec {
val tableProperties = CatalogV2Util.convertTableProperties(tableSpec)
override protected def run(): Seq[InternalRow] = {
if (catalog.tableExists(ident)) {
- val table = catalog.loadTable(ident)
Review Comment:
The load seems redundant now. Thoughts?
--
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]