Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
*/
package feast.ingestion

import java.nio.file.Paths

import feast.ingestion.sources.bq.BigQueryReader
import feast.ingestion.sources.file.FileReader
import feast.ingestion.validation.{RowValidator, TypeCheck}
import org.apache.commons.lang.StringUtils
import org.apache.spark.SparkEnv
import org.apache.spark.sql.{Column, SaveMode, SparkSession}
import org.apache.spark.sql.functions.col
import org.apache.spark.sql.{SaveMode, SparkSession}

/**
* Batch Ingestion Flow:
Expand Down Expand Up @@ -83,7 +81,7 @@ object BatchPipeline extends BasePipeline {
.write
.format("parquet")
.mode(SaveMode.Append)
.save(Paths.get(path, SparkEnv.get.conf.getAppId).toString)
.save(StringUtils.stripEnd(path, "/") + "/" + SparkEnv.get.conf.getAppId)
case _ => None
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
*/
package feast.ingestion

import java.nio.file.Paths

import feast.ingestion.registry.proto.ProtoRegistryFactory
import org.apache.spark.sql.{DataFrame, Row, SaveMode, SparkSession}
import org.apache.spark.sql.functions.udf
import feast.ingestion.utils.ProtoReflection
import feast.ingestion.validation.{RowValidator, TypeCheck}
import org.apache.commons.lang.StringUtils
import org.apache.spark.SparkEnv
import org.apache.spark.sql.streaming.StreamingQuery
import org.apache.spark.sql.avro._
Expand Down Expand Up @@ -97,7 +96,7 @@ object StreamingPipeline extends BasePipeline with Serializable {
.write
.format("parquet")
.mode(SaveMode.Append)
.save(Paths.get(path, SparkEnv.get.conf.getAppId).toString)
.save(StringUtils.stripEnd(path, "/") + "/" + SparkEnv.get.conf.getAppId)
case _ =>
batchDF
.filter(!validator.checkAll)
Expand Down