Skip to content

Commit

Permalink
code missed in merge (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
sriram251-code committed Jan 5, 2024
1 parent 2eecc8c commit 615e786
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ class Workspace(config: Config) extends SparkSessionWrapper {
if(Helpers.pathExists(tempWorkingDir)) {
try {
spark.conf.set("spark.sql.caseSensitive", "true")
val df = spark.read.json(tempWorkingDir)
val baseDF = spark.read.json(tempWorkingDir)
val df = deriveRawApiResponseDF(baseDF)
.select(explode(col("runs")).alias("runs")).select(col("runs" + ".*"))
.withColumn("organization_id", lit(config.organizationId))
spark.conf.set("spark.sql.caseSensitive", "false")
Expand Down

0 comments on commit 615e786

Please sign in to comment.