Skip to content

Commit 9750b38

Browse files
committed
Remove catalogTable check to allow regular DataFrame writes
1 parent 83bcafb commit 9750b38

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

spark/src/main/scala/org/apache/comet/serde/operator/CometDataWritingCommand.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ object CometDataWritingCommand extends CometOperatorSerde[DataWritingCommandExec
5050
override def getSupportLevel(op: DataWritingCommandExec): SupportLevel = {
5151
op.cmd match {
5252
case cmd: InsertIntoHadoopFsRelationCommand =>
53-
// Skip INSERT OVERWRITE DIRECTORY operations (catalogTable is None for directory writes)
54-
if (cmd.catalogTable.isEmpty) {
55-
return Unsupported(Some("INSERT OVERWRITE DIRECTORY is not supported"))
56-
}
57-
5853
cmd.fileFormat match {
5954
case _: ParquetFileFormat =>
6055
if (!cmd.outputPath.toString.startsWith("file:")) {

0 commit comments

Comments
 (0)