Skip to content

Commit

Permalink
move limit back
Browse files Browse the repository at this point in the history
  • Loading branch information
bubriks committed Dec 4, 2024
1 parent 0ccc1f4 commit 243cfea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/python/hsfs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def offline_fg_materialization(
.option("includeHeaders", "true")
.option("failOnDataLoss", "false")
.load()
.limit(5000000)
)

# update offsets
Expand Down Expand Up @@ -326,9 +327,6 @@ def offline_fg_materialization(
== str(entity.subject["id"])
)

# limit the number of records ingested
df = df.limit(5000000)

# deserialize dataframe so that it can be properly saved
deserialized_df = engine.get_instance()._deserialize_from_avro(entity, df)

Expand Down

0 comments on commit 243cfea

Please sign in to comment.