You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: feathr-impl/src/main/scala/com/linkedin/feathr/offline/source/dataloader/hdfs/FileFormat.scala
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ object FileFormat {
26
26
// Snowflake type
27
27
valSNOWFLAKE="SNOWFLAKE"
28
28
29
+
valUNITY_CATALOG="UNITY_CATALOG"
30
+
29
31
privatevalAVRO_DATASOURCE="avro"
30
32
// Use Spark native orc reader instead of hive-orc since Spark 2.3
31
33
privatevalORC_DATASOURCE="orc"
@@ -47,6 +49,7 @@ object FileFormat {
47
49
case p if p.endsWith(".avro") =>AVRO
48
50
case p if p.startsWith("jdbc:") =>JDBC
49
51
case p if p.startsWith("snowflake:") =>SNOWFLAKE
52
+
case p if p.startsWith("unity:") =>UNITY_CATALOG
50
53
case _ =>
51
54
// if we cannot tell the file format from the file extensions, we should read from `spark.feathr.inputFormat` to get the format that's sepcified by user.
52
55
if (ss.conf.get("spark.feathr.inputFormat","").nonEmpty) ss.conf.get("spark.feathr.inputFormat") elsePATHLIST
@@ -85,6 +88,7 @@ object FileFormat {
85
88
case p if p.endsWith(".avro") =>AVRO
86
89
case p if p.startsWith("jdbc:") =>JDBC
87
90
case p if p.startsWith("snowflake:") =>SNOWFLAKE
91
+
case p if p.startsWith("unity:") =>UNITY_CATALOG
88
92
case _ =>
89
93
// if we cannot tell the file format from the file extensions, we should read from `spark.feathr.inputFormat` to get the format that's sepcified by user.
0 commit comments