Skip to content

Commit

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

# filter only the necassary entries
Expand All @@ -315,6 +314,9 @@ 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 2581ffb

Please sign in to comment.