Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Apr 15, 2024
1 parent f7dd647 commit 299a481
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ case class RelationConversions(
case InsertIntoStatement(
r: HiveTableRelation, partition, cols, query, overwrite, ifPartitionNotExists, byName)
if query.resolved && DDLUtils.isHiveTable(r.tableMeta) &&
(r.isPartitioned && conf.getConf(HiveUtils.CONVERT_INSERTING_PARTITIONED_TABLE) ||
!r.isPartitioned && conf.getConf(HiveUtils.CONVERT_INSERTING_UNPARTITIONED_TABLE))
((r.isPartitioned && conf.getConf(HiveUtils.CONVERT_INSERTING_PARTITIONED_TABLE)) ||
(!r.isPartitioned && conf.getConf(HiveUtils.CONVERT_INSERTING_UNPARTITIONED_TABLE)))
&& isConvertible(r) =>
InsertIntoStatement(metastoreCatalog.convert(r, isWrite = true), partition, cols,
query, overwrite, ifPartitionNotExists, byName)
Expand Down

0 comments on commit 299a481

Please sign in to comment.