Skip to content

Commit

Permalink
odpstable-fix-AbsaOSS#820
Browse files Browse the repository at this point in the history
  • Loading branch information
BerlinJava committed Sep 2, 2024
1 parent a6f63b1 commit df527ce
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ class DataSourceV2Plugin
SourceIdentifier(Some(format), pathUris: _*)

case `_: TableV2`(tv2) => extractSourceIdFromDeltaTableV2(tv2)

case `_: OdpsTable`(ot) => SourceIdentifier(Some("odpstable"),s"odpstable:${extractValue[String](ot,"name")}")
}

private def extractSourceIdFromDeltaTableV2(table: AnyRef): SourceIdentifier = {
Expand Down Expand Up @@ -231,4 +233,7 @@ object DataSourceV2Plugin {
private object `_: TableV2` extends SafeTypeMatchingExtractor[AnyRef](
"org.apache.spark.sql.connector.catalog.Table")

private object `_: OdpsTable` extends SafeTypeMatchingExtractor[AnyRef](
"org.apache.spark.sql.execution.datasources.v2.odps.OdpsTable")

}

0 comments on commit df527ce

Please sign in to comment.