Skip to content

Commit 2a22b56

Browse files
committed
Merge branch 'main' into FSTORE-1537
2 parents 0303ad9 + 147af3e commit 2a22b56

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

java/beam/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>hsfs-parent</artifactId>
77
<groupId>com.logicalclocks</groupId>
8-
<version>4.0.0-SNAPSHOT</version>
8+
<version>4.1.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

java/flink/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>hsfs-parent</artifactId>
77
<groupId>com.logicalclocks</groupId>
8-
<version>4.0.0-SNAPSHOT</version>
8+
<version>4.1.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

java/hsfs/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>hsfs-parent</artifactId>
77
<groupId>com.logicalclocks</groupId>
8-
<version>4.0.0-SNAPSHOT</version>
8+
<version>4.1.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

java/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.logicalclocks</groupId>
88
<artifactId>hsfs-parent</artifactId>
99
<packaging>pom</packaging>
10-
<version>4.0.0-SNAPSHOT</version>
10+
<version>4.1.0-SNAPSHOT</version>
1111
<modules>
1212
<module>hsfs</module>
1313
<module>spark</module>

java/spark/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>hsfs-parent</artifactId>
2424
<groupId>com.logicalclocks</groupId>
25-
<version>4.0.0-SNAPSHOT</version>
25+
<version>4.1.0-SNAPSHOT</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

python/hopsworks_common/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# limitations under the License.
1515
#
1616

17-
__version__ = "4.0.0.dev1"
17+
__version__ = "4.1.0.dev1"

python/hsfs/core/delta_engine.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ def _generate_merge_query(self, source_alias, updates_alias):
187187
@staticmethod
188188
def _get_last_commit_metadata(spark_context, base_path):
189189
fg_source_table = DeltaTable.forPath(spark_context, base_path)
190+
191+
# Get info about the latest commit
190192
last_commit = fg_source_table.history(1).first().asDict()
191193
version = last_commit["version"]
192194
commit_timestamp = util.convert_event_time_to_timestamp(
@@ -195,6 +197,12 @@ def _get_last_commit_metadata(spark_context, base_path):
195197
commit_date_string = util.get_hudi_datestr_from_timestamp(commit_timestamp)
196198
operation_metrics = last_commit["operationMetrics"]
197199

200+
# Get info about the oldest remaining commit
201+
oldest_commit = fg_source_table.history().orderBy("version").first().asDict()
202+
oldest_commit_timestamp = util.convert_event_time_to_timestamp(
203+
oldest_commit["timestamp"]
204+
)
205+
198206
if version == 0:
199207
fg_commit = feature_group_commit.FeatureGroupCommit(
200208
commitid=None,
@@ -203,7 +211,7 @@ def _get_last_commit_metadata(spark_context, base_path):
203211
rows_inserted=operation_metrics["numOutputRows"],
204212
rows_updated=0,
205213
rows_deleted=0,
206-
last_active_commit_time=commit_timestamp,
214+
last_active_commit_time=oldest_commit_timestamp,
207215
)
208216
else:
209217
fg_commit = feature_group_commit.FeatureGroupCommit(
@@ -213,7 +221,7 @@ def _get_last_commit_metadata(spark_context, base_path):
213221
rows_inserted=operation_metrics["numTargetRowsInserted"],
214222
rows_updated=operation_metrics["numTargetRowsUpdated"],
215223
rows_deleted=operation_metrics["numTargetRowsDeleted"],
216-
last_active_commit_time=commit_timestamp,
224+
last_active_commit_time=oldest_commit_timestamp,
217225
)
218226

219227
return fg_commit

utils/java/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.logicalclocks</groupId>
77
<artifactId>hsfs-utils</artifactId>
8-
<version>4.0.0-SNAPSHOT</version>
8+
<version>4.1.0-SNAPSHOT</version>
99

1010
<properties>
1111
<hops.version>3.2.0.0-SNAPSHOT</hops.version>

0 commit comments

Comments
 (0)