Skip to content

Commit

Permalink
(fix) EntitySQLEmptyResults lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotNguyen68 committed Mar 6, 2024
1 parent ceda87f commit 388413c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,11 @@ def _get_entity_df_event_timestamp_range(
# from table
if isinstance(entity_df, str):
df = spark_session.sql(entity_df).select(entity_df_event_timestamp_col)
# Checks if executing entity sql resulted in any data
if df.rdd.isEmpty():
raise EntitySQLEmptyResults(entity_df)
else:
df = entity_df

# Checks if executing entity sql resulted in any data
if df.rdd.isEmpty():
raise EntitySQLEmptyResults(entity_df)

# TODO(kzhang132): need utc conversion here.

entity_df_event_timestamp_range = (
Expand Down

0 comments on commit 388413c

Please sign in to comment.