diff --git a/core/src/main/scala/za/co/absa/spline/harvester/plugin/embedded/DataSourceV2Plugin.scala b/core/src/main/scala/za/co/absa/spline/harvester/plugin/embedded/DataSourceV2Plugin.scala index 8b495443..f9e9f626 100644 --- a/core/src/main/scala/za/co/absa/spline/harvester/plugin/embedded/DataSourceV2Plugin.scala +++ b/core/src/main/scala/za/co/absa/spline/harvester/plugin/embedded/DataSourceV2Plugin.scala @@ -163,6 +163,8 @@ class DataSourceV2Plugin val pathUris = paths.map(prependFileSchemaIfMissing) SourceIdentifier(Some(format), pathUris: _*) + case `_: OdpsTable`(ot) => SourceIdentifier(Some("odpstable"),s"odpstable:${extractValue[String](ot,"name")}") + case `_: TableV2`(tv2) => extractSourceIdFromDeltaTableV2(tv2) } @@ -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") + }