Skip to content

Commit

Permalink
add return case of entity is str
Browse files Browse the repository at this point in the history
Signed-off-by: tanlocnguyen <tanlocnguyen296@gmail.com>
  • Loading branch information
ElliotNguyen68 committed Mar 6, 2024
1 parent 1ef7de9 commit 0aef8d9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def _upload_entity_df(
return
elif isinstance(entity_df, str):
spark_session.sql(entity_df).createOrReplaceTempView(table_name)
return
elif isinstance(entity_df, pyspark.sql.DataFrame):
entity_df.createOrReplaceTempView(table_name)
return
Expand Down

0 comments on commit 0aef8d9

Please sign in to comment.