Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
YannByron committed Aug 20, 2024
1 parent 2e34913 commit 20160ff
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,16 @@ trait PaimonCommand extends WithFileStoreTable with ExpressionHelper {
sparkSession: SparkSession): Dataset[SparkDeletionVectors] = {
import sparkSession.implicits._

val dataFileToPartitionAndBucket: Array[(String, (BinaryRow, Int))] =
val resolver = sparkSession.sessionState.conf.resolver
Seq(FILE_PATH_COLUMN, ROW_INDEX_COLUMN).foreach {
metadata =>
dataWithMetadataColumns.schema
.find(field => resolver(field.name, metadata))
.orElse(throw new RuntimeException(
"This input dataset doesn't contains the required metadata columns: __paimon_file_path and __paimon_row_index."))
}

val dataFileToPartitionAndBucket =
dataFilePathToMeta.mapValues(meta => (meta.partition, meta.bucket)).toArray

val my_table = table
Expand Down

0 comments on commit 20160ff

Please sign in to comment.