You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2025/12/08 20:17:19 UTC

(streampipes) branch dev updated: fix: handle None case for event_schema in Python Client DataLakeMeasure (#4035)

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 9ed5d0ba55 fix: handle None case for event_schema in Python Client DataLakeMeasure (#4035)
9ed5d0ba55 is described below

commit 9ed5d0ba55f7de2323dcffe629c97e0e29c24f86
Author: airwish <it...@outlook.com>
AuthorDate: Tue Dec 9 04:17:14 2025 +0800

    fix: handle None case for event_schema in Python Client DataLakeMeasure (#4035)
---
 .../streampipes/model/resource/data_lake_measure.py                     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampipes-client-python/streampipes/model/resource/data_lake_measure.py b/streampipes-client-python/streampipes/model/resource/data_lake_measure.py
index 98b693e2bf..dc4fb7a228 100644
--- a/streampipes-client-python/streampipes/model/resource/data_lake_measure.py
+++ b/streampipes-client-python/streampipes/model/resource/data_lake_measure.py
@@ -53,7 +53,7 @@ class DataLakeMeasure(Resource):
 
         return {
             **self.dict(exclude={"element_id", "event_schema", "schema_version"}),
-            "num_event_properties": len(self.event_schema.event_properties),
+            "num_event_properties": len(self.event_schema.event_properties) if self.event_schema else 0,
         }
 
     element_id: Optional[StrictStr]