Skip to content

Commit

Permalink
fix pyspark logic
Browse files Browse the repository at this point in the history
  • Loading branch information
uche-madu committed Oct 19, 2023
1 parent 40e268a commit 85d0beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyspark-scripts/process_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main():
# Save the DataFrame to BigQuery
(log_df_parsed.write.format("bigquery")
.option("temporaryGcsBucket", GCS_BUCKET)
.option("partitionField", "log_date")
# .option("partitionField", "day")
.mode("append")
.save(f"{BQ_DATASET_NAME}.{BQ_LOG_REVIEWS_TABLE}")
)
Expand Down
2 changes: 1 addition & 1 deletion pyspark-scripts/process_movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def main() -> None:
# Save the DataFrame to BigQuery
(result_df.write.format("bigquery")
.option("temporaryGcsBucket", GCS_BUCKET)
.option("partitionField", "insert_date")
# .option("partitionField", "insert_date")
.mode("append")
.save(f"{BQ_DATASET_NAME}.{BQ_MOVIE_REVIEWS_TABLE}")
)
Expand Down

0 comments on commit 85d0beb

Please sign in to comment.