feldera 0.122.0__py3-none-any.whl → 0.124.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of feldera might be problematic. Click here for more details.

feldera/pipeline.py CHANGED
@@ -1061,7 +1061,18 @@ pipeline '{self.name}' to sync checkpoint '{uuid}'"""
1061
1061
  errors.append(derr)
1062
1062
  return errors
1063
1063
 
1064
- def support_bundle(self, output_path: Optional[str] = None) -> bytes:
1064
+ def support_bundle(
1065
+ self,
1066
+ output_path: Optional[str] = None,
1067
+ *,
1068
+ circuit_profile: bool = True,
1069
+ heap_profile: bool = True,
1070
+ metrics: bool = True,
1071
+ logs: bool = True,
1072
+ stats: bool = True,
1073
+ pipeline_config: bool = True,
1074
+ system_config: bool = True,
1075
+ ) -> bytes:
1065
1076
  """
1066
1077
  Generate a support bundle containing diagnostic information from this pipeline.
1067
1078
 
@@ -1071,11 +1082,37 @@ pipeline '{self.name}' to sync checkpoint '{uuid}'"""
1071
1082
 
1072
1083
  :param output_path: Optional path to save the support bundle file. If None,
1073
1084
  the support bundle is only returned as bytes.
1085
+ :param circuit_profile: Whether to collect circuit profile data (default: True)
1086
+ :param heap_profile: Whether to collect heap profile data (default: True)
1087
+ :param metrics: Whether to collect metrics data (default: True)
1088
+ :param logs: Whether to collect logs data (default: True)
1089
+ :param stats: Whether to collect stats data (default: True)
1090
+ :param pipeline_config: Whether to collect pipeline configuration data (default: True)
1091
+ :param system_config: Whether to collect system configuration data (default: True)
1074
1092
  :return: The support bundle as bytes (ZIP archive)
1075
1093
  :raises FelderaAPIError: If the pipeline does not exist or if there's an error
1076
1094
  """
1077
1095
 
1078
- support_bundle_bytes = self.client.get_pipeline_support_bundle(self.name)
1096
+ # Build query parameters
1097
+ params = {}
1098
+ if not circuit_profile:
1099
+ params["circuit_profile"] = "false"
1100
+ if not heap_profile:
1101
+ params["heap_profile"] = "false"
1102
+ if not metrics:
1103
+ params["metrics"] = "false"
1104
+ if not logs:
1105
+ params["logs"] = "false"
1106
+ if not stats:
1107
+ params["stats"] = "false"
1108
+ if not pipeline_config:
1109
+ params["pipeline_config"] = "false"
1110
+ if not system_config:
1111
+ params["system_config"] = "false"
1112
+
1113
+ support_bundle_bytes = self.client.get_pipeline_support_bundle(
1114
+ self.name, params=params
1115
+ )
1079
1116
 
1080
1117
  if output_path is not None:
1081
1118
  path = pathlib.Path(output_path)
@@ -138,7 +138,17 @@ class FelderaClient:
138
138
  err_msg += f"Code snippet:\n{sql_error['snippet']}"
139
139
  raise RuntimeError(err_msg)
140
140
 
141
- raise RuntimeError(f"The program failed to compile: {status}")
141
+ error_message = f"The program failed to compile: {status}\n"
142
+
143
+ rust_error = p.program_error.get("rust_compilation")
144
+ if rust_error is not None:
145
+ error_message += f"Rust Error: {rust_error}\n"
146
+
147
+ system_error = p.program_error.get("system_error")
148
+ if system_error is not None:
149
+ error_message += f"System Error: {system_error}"
150
+
151
+ raise RuntimeError(error_message)
142
152
 
143
153
  logging.debug("still compiling %s, waiting for 100 more milliseconds", name)
144
154
  time.sleep(0.1)
@@ -952,7 +962,9 @@ Reason: The pipeline is in a STOPPED state due to the following error:
952
962
 
953
963
  return FelderaConfig(resp)
954
964
 
955
- def get_pipeline_support_bundle(self, pipeline_name: str) -> bytes:
965
+ def get_pipeline_support_bundle(
966
+ self, pipeline_name: str, params: Optional[Dict[str, Any]] = None
967
+ ) -> bytes:
956
968
  """
957
969
  Generate a support bundle containing diagnostic information from a pipeline.
958
970
 
@@ -961,12 +973,14 @@ Reason: The pipeline is in a STOPPED state due to the following error:
961
973
  and packages them into a single ZIP file for support purposes.
962
974
 
963
975
  :param pipeline_name: The name of the pipeline
976
+ :param params: Optional query parameters to control data collection
964
977
  :return: The support bundle as bytes (ZIP file)
965
978
  :raises FelderaAPIError: If the pipeline does not exist or if there's an error
966
979
  """
967
980
 
968
981
  resp = self.http.get(
969
982
  path=f"/pipelines/{pipeline_name}/support_bundle",
983
+ params=params,
970
984
  stream=True,
971
985
  )
972
986
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: feldera
3
- Version: 0.122.0
3
+ Version: 0.124.0
4
4
  Summary: The feldera python client
5
5
  Author-email: Feldera Team <dev@feldera.com>
6
6
  License: MIT
@@ -3,7 +3,7 @@ feldera/_callback_runner.py,sha256=-2hYG70cEkvz4BiOfUTARaH-2Rlv0Qcz-ilvodgyK10,4
3
3
  feldera/_helpers.py,sha256=rN0WuGSCCQlXWFMimZUQrgs-LJAfUo074d79sLElncQ,3023
4
4
  feldera/enums.py,sha256=MTHBojVANsdRnjbrzCyIOniDIUaH8nTYRfxB7QvajEE,9570
5
5
  feldera/output_handler.py,sha256=64J3ljhOaKIhxdjOKYi-BUz_HnMwROfmN8eE-btYygU,1930
6
- feldera/pipeline.py,sha256=yqR_GzYOrP4FU2XzK4P7vGL3fVIUh_wHOOP3RtP3gJw,39033
6
+ feldera/pipeline.py,sha256=sBcYoETIAXjRknTYOLdFbrv6L5X_2ntFtZ7M_fySQpQ,40444
7
7
  feldera/pipeline_builder.py,sha256=a750hp5SgTmlyrobTHFh1fTaK9Ed4A5qnXaYRctRM-8,4250
8
8
  feldera/runtime_config.py,sha256=MuYJPd5G_hnu_eDz4ge4BfYvSBSOvOEtv4NYh5sEwqU,4452
9
9
  feldera/stats.py,sha256=eZxq51bUV3mlo6BW43DUHwmG1wpLs04rVECxOGojqxU,5026
@@ -12,12 +12,12 @@ feldera/rest/_helpers.py,sha256=q7jWInKp9IiIli8N5o31lDG3hNUbcsJqufZXYHG04ps,222
12
12
  feldera/rest/_httprequests.py,sha256=w8tD-_3spAf4vgalJQceIHQ7qw1uvxprDFM2oz3P5QU,7559
13
13
  feldera/rest/config.py,sha256=DYzZKngDEhouTEwqVFd-rDrBN9tWqsU07Jl_BTT4mXs,1008
14
14
  feldera/rest/errors.py,sha256=b4i2JjrbSmej7jdko_FL8UeXklLKenSipwMT80jowaM,1720
15
- feldera/rest/feldera_client.py,sha256=yd9ofC6xz-xh34GOBgFvJ1kzvG7E-GDmBbmfJpnPMLo,33788
15
+ feldera/rest/feldera_client.py,sha256=BjjL0hlA2kuyR6eWBJTdc8kA_wNdTwQtaSNMHF_NqEE,34371
16
16
  feldera/rest/feldera_config.py,sha256=1pnGbLFMSLvp7Qh_OlPLALSKCSHIktNWKvx6gYU00U4,1374
17
17
  feldera/rest/pipeline.py,sha256=Rmbflbwjvd86iZ5aSJ5b_bTSs6vgvEKQFwMZDtm0nxE,2835
18
18
  feldera/rest/sql_table.py,sha256=qrw-YwMzx5T81zDefNO1KOx7EyypFz1vPwGBzSUB7kc,652
19
19
  feldera/rest/sql_view.py,sha256=hN12mPM0mvwLCIPYywpb12s9Hd2Ws31IlTMXPriMisw,644
20
- feldera-0.122.0.dist-info/METADATA,sha256=l4wH36BcxiWOYNLuleUTMR1jK3MTjjDXOgmZbmZdv5E,4053
21
- feldera-0.122.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
- feldera-0.122.0.dist-info/top_level.txt,sha256=fB6yTqrQiO6RCbY1xP2T_mpPoTjDFtJvkJJodiee7d0,8
23
- feldera-0.122.0.dist-info/RECORD,,
20
+ feldera-0.124.0.dist-info/METADATA,sha256=daeb8431JgAsh18bujhlQSa7qxV9PWzy7jME0ZQ44zw,4053
21
+ feldera-0.124.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
+ feldera-0.124.0.dist-info/top_level.txt,sha256=fB6yTqrQiO6RCbY1xP2T_mpPoTjDFtJvkJJodiee7d0,8
23
+ feldera-0.124.0.dist-info/RECORD,,