chalkpy 2.89.22__py3-none-any.whl → 2.95.3__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.
- chalk/__init__.py +2 -1
- chalk/_gen/chalk/arrow/v1/arrow_pb2.py +7 -5
- chalk/_gen/chalk/arrow/v1/arrow_pb2.pyi +6 -0
- chalk/_gen/chalk/artifacts/v1/chart_pb2.py +36 -33
- chalk/_gen/chalk/artifacts/v1/chart_pb2.pyi +41 -1
- chalk/_gen/chalk/artifacts/v1/cron_query_pb2.py +8 -7
- chalk/_gen/chalk/artifacts/v1/cron_query_pb2.pyi +5 -0
- chalk/_gen/chalk/common/v1/offline_query_pb2.py +19 -13
- chalk/_gen/chalk/common/v1/offline_query_pb2.pyi +37 -0
- chalk/_gen/chalk/common/v1/online_query_pb2.py +54 -54
- chalk/_gen/chalk/common/v1/online_query_pb2.pyi +13 -1
- chalk/_gen/chalk/common/v1/script_task_pb2.py +13 -11
- chalk/_gen/chalk/common/v1/script_task_pb2.pyi +19 -1
- chalk/_gen/chalk/dataframe/__init__.py +0 -0
- chalk/_gen/chalk/dataframe/v1/__init__.py +0 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2.py +48 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2.pyi +123 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.py +4 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/graph/v1/graph_pb2.py +150 -149
- chalk/_gen/chalk/graph/v1/graph_pb2.pyi +25 -0
- chalk/_gen/chalk/graph/v1/sources_pb2.py +94 -84
- chalk/_gen/chalk/graph/v1/sources_pb2.pyi +56 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.py +79 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.pyi +377 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.py +4 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.py +43 -7
- chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.pyi +252 -2
- chalk/_gen/chalk/protosql/v1/sql_service_pb2.py +54 -27
- chalk/_gen/chalk/protosql/v1/sql_service_pb2.pyi +131 -3
- chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.py +45 -0
- chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.pyi +14 -0
- chalk/_gen/chalk/python/v1/types_pb2.py +14 -14
- chalk/_gen/chalk/python/v1/types_pb2.pyi +8 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2.py +76 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2.pyi +156 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.py +258 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.pyi +84 -0
- chalk/_gen/chalk/server/v1/billing_pb2.py +40 -38
- chalk/_gen/chalk/server/v1/billing_pb2.pyi +17 -1
- chalk/_gen/chalk/server/v1/branches_pb2.py +45 -0
- chalk/_gen/chalk/server/v1/branches_pb2.pyi +80 -0
- chalk/_gen/chalk/server/v1/branches_pb2_grpc.pyi +36 -0
- chalk/_gen/chalk/server/v1/builder_pb2.py +372 -272
- chalk/_gen/chalk/server/v1/builder_pb2.pyi +479 -12
- chalk/_gen/chalk/server/v1/builder_pb2_grpc.py +360 -0
- chalk/_gen/chalk/server/v1/builder_pb2_grpc.pyi +96 -0
- chalk/_gen/chalk/server/v1/chart_pb2.py +10 -10
- chalk/_gen/chalk/server/v1/chart_pb2.pyi +18 -2
- chalk/_gen/chalk/server/v1/clickhouse_pb2.py +42 -0
- chalk/_gen/chalk/server/v1/clickhouse_pb2.pyi +17 -0
- chalk/_gen/chalk/server/v1/clickhouse_pb2_grpc.py +78 -0
- chalk/_gen/chalk/server/v1/clickhouse_pb2_grpc.pyi +38 -0
- chalk/_gen/chalk/server/v1/cloud_components_pb2.py +153 -107
- chalk/_gen/chalk/server/v1/cloud_components_pb2.pyi +146 -4
- chalk/_gen/chalk/server/v1/cloud_components_pb2_grpc.py +180 -0
- chalk/_gen/chalk/server/v1/cloud_components_pb2_grpc.pyi +48 -0
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2.py +11 -3
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2.pyi +20 -0
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/cloud_credentials_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2.py +59 -35
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2.pyi +127 -1
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2_grpc.py +135 -0
- chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2_grpc.pyi +36 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.py +90 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.pyi +264 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.py +170 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.pyi +62 -0
- chalk/_gen/chalk/server/v1/datasets_pb2.py +36 -24
- chalk/_gen/chalk/server/v1/datasets_pb2.pyi +71 -2
- chalk/_gen/chalk/server/v1/datasets_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/datasets_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/deploy_pb2.py +9 -3
- chalk/_gen/chalk/server/v1/deploy_pb2.pyi +12 -0
- chalk/_gen/chalk/server/v1/deploy_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/deploy_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/deployment_pb2.py +20 -15
- chalk/_gen/chalk/server/v1/deployment_pb2.pyi +25 -0
- chalk/_gen/chalk/server/v1/environment_pb2.py +25 -15
- chalk/_gen/chalk/server/v1/environment_pb2.pyi +93 -1
- chalk/_gen/chalk/server/v1/eventbus_pb2.py +44 -0
- chalk/_gen/chalk/server/v1/eventbus_pb2.pyi +64 -0
- chalk/_gen/chalk/server/v1/eventbus_pb2_grpc.py +4 -0
- chalk/_gen/chalk/server/v1/eventbus_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/server/v1/files_pb2.py +65 -0
- chalk/_gen/chalk/server/v1/files_pb2.pyi +167 -0
- chalk/_gen/chalk/server/v1/files_pb2_grpc.py +4 -0
- chalk/_gen/chalk/server/v1/files_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/server/v1/graph_pb2.py +41 -3
- chalk/_gen/chalk/server/v1/graph_pb2.pyi +191 -0
- chalk/_gen/chalk/server/v1/graph_pb2_grpc.py +92 -0
- chalk/_gen/chalk/server/v1/graph_pb2_grpc.pyi +32 -0
- chalk/_gen/chalk/server/v1/incident_pb2.py +57 -0
- chalk/_gen/chalk/server/v1/incident_pb2.pyi +165 -0
- chalk/_gen/chalk/server/v1/incident_pb2_grpc.py +4 -0
- chalk/_gen/chalk/server/v1/incident_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/server/v1/indexing_job_pb2.py +44 -0
- chalk/_gen/chalk/server/v1/indexing_job_pb2.pyi +38 -0
- chalk/_gen/chalk/server/v1/indexing_job_pb2_grpc.py +78 -0
- chalk/_gen/chalk/server/v1/indexing_job_pb2_grpc.pyi +38 -0
- chalk/_gen/chalk/server/v1/integrations_pb2.py +11 -9
- chalk/_gen/chalk/server/v1/integrations_pb2.pyi +34 -2
- chalk/_gen/chalk/server/v1/kube_pb2.py +29 -19
- chalk/_gen/chalk/server/v1/kube_pb2.pyi +28 -0
- chalk/_gen/chalk/server/v1/kube_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/kube_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/log_pb2.py +21 -3
- chalk/_gen/chalk/server/v1/log_pb2.pyi +68 -0
- chalk/_gen/chalk/server/v1/log_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/log_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2.py +73 -0
- chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2.pyi +212 -0
- chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2_grpc.py +217 -0
- chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2_grpc.pyi +74 -0
- chalk/_gen/chalk/server/v1/model_registry_pb2.py +10 -10
- chalk/_gen/chalk/server/v1/model_registry_pb2.pyi +4 -1
- chalk/_gen/chalk/server/v1/monitoring_pb2.py +84 -75
- chalk/_gen/chalk/server/v1/monitoring_pb2.pyi +1 -0
- chalk/_gen/chalk/server/v1/monitoring_pb2_grpc.py +136 -0
- chalk/_gen/chalk/server/v1/monitoring_pb2_grpc.pyi +38 -0
- chalk/_gen/chalk/server/v1/offline_queries_pb2.py +32 -10
- chalk/_gen/chalk/server/v1/offline_queries_pb2.pyi +73 -0
- chalk/_gen/chalk/server/v1/offline_queries_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/offline_queries_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/plandebug_pb2.py +53 -0
- chalk/_gen/chalk/server/v1/plandebug_pb2.pyi +86 -0
- chalk/_gen/chalk/server/v1/plandebug_pb2_grpc.py +168 -0
- chalk/_gen/chalk/server/v1/plandebug_pb2_grpc.pyi +60 -0
- chalk/_gen/chalk/server/v1/queries_pb2.py +76 -48
- chalk/_gen/chalk/server/v1/queries_pb2.pyi +155 -2
- chalk/_gen/chalk/server/v1/queries_pb2_grpc.py +180 -0
- chalk/_gen/chalk/server/v1/queries_pb2_grpc.pyi +48 -0
- chalk/_gen/chalk/server/v1/scheduled_query_pb2.py +4 -2
- chalk/_gen/chalk/server/v1/scheduled_query_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/scheduled_query_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/scheduled_query_run_pb2.py +12 -6
- chalk/_gen/chalk/server/v1/scheduled_query_run_pb2.pyi +75 -2
- chalk/_gen/chalk/server/v1/scheduler_pb2.py +24 -12
- chalk/_gen/chalk/server/v1/scheduler_pb2.pyi +61 -1
- chalk/_gen/chalk/server/v1/scheduler_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/scheduler_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/script_tasks_pb2.py +26 -14
- chalk/_gen/chalk/server/v1/script_tasks_pb2.pyi +33 -3
- chalk/_gen/chalk/server/v1/script_tasks_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/script_tasks_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2.py +75 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2.pyi +142 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.py +349 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.pyi +114 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2.py +48 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2.pyi +150 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2_grpc.py +123 -0
- chalk/_gen/chalk/server/v1/sql_queries_pb2_grpc.pyi +52 -0
- chalk/_gen/chalk/server/v1/team_pb2.py +156 -137
- chalk/_gen/chalk/server/v1/team_pb2.pyi +56 -10
- chalk/_gen/chalk/server/v1/team_pb2_grpc.py +90 -0
- chalk/_gen/chalk/server/v1/team_pb2_grpc.pyi +24 -0
- chalk/_gen/chalk/server/v1/topic_pb2.py +5 -3
- chalk/_gen/chalk/server/v1/topic_pb2.pyi +10 -1
- chalk/_gen/chalk/server/v1/trace_pb2.py +50 -28
- chalk/_gen/chalk/server/v1/trace_pb2.pyi +121 -0
- chalk/_gen/chalk/server/v1/trace_pb2_grpc.py +135 -0
- chalk/_gen/chalk/server/v1/trace_pb2_grpc.pyi +42 -0
- chalk/_gen/chalk/server/v1/webhook_pb2.py +9 -3
- chalk/_gen/chalk/server/v1/webhook_pb2.pyi +18 -0
- chalk/_gen/chalk/server/v1/webhook_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/webhook_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2.py +62 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2.pyi +75 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.py +221 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.pyi +88 -0
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.py +19 -7
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.pyi +96 -3
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2_grpc.py +48 -0
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2_grpc.pyi +20 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2.py +32 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2.pyi +42 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2_grpc.py +4 -0
- chalk/_gen/chalk/utils/v1/field_change_pb2_grpc.pyi +4 -0
- chalk/_lsp/error_builder.py +11 -0
- chalk/_monitoring/Chart.py +1 -3
- chalk/_version.py +1 -1
- chalk/cli.py +5 -10
- chalk/client/client.py +178 -64
- chalk/client/client_async.py +154 -0
- chalk/client/client_async_impl.py +22 -0
- chalk/client/client_grpc.py +738 -112
- chalk/client/client_impl.py +541 -136
- chalk/client/dataset.py +27 -6
- chalk/client/models.py +99 -2
- chalk/client/serialization/model_serialization.py +126 -10
- chalk/config/project_config.py +1 -1
- chalk/df/LazyFramePlaceholder.py +1154 -0
- chalk/df/ast_parser.py +2 -10
- chalk/features/_class_property.py +7 -0
- chalk/features/_embedding/embedding.py +1 -0
- chalk/features/_embedding/sentence_transformer.py +1 -1
- chalk/features/_encoding/converter.py +83 -2
- chalk/features/_encoding/pyarrow.py +20 -4
- chalk/features/_encoding/rich.py +1 -3
- chalk/features/_tensor.py +1 -2
- chalk/features/dataframe/_filters.py +14 -5
- chalk/features/dataframe/_impl.py +91 -36
- chalk/features/dataframe/_validation.py +11 -7
- chalk/features/feature_field.py +40 -30
- chalk/features/feature_set.py +1 -2
- chalk/features/feature_set_decorator.py +1 -0
- chalk/features/feature_wrapper.py +42 -3
- chalk/features/hooks.py +81 -12
- chalk/features/inference.py +65 -10
- chalk/features/resolver.py +338 -56
- chalk/features/tag.py +1 -3
- chalk/features/underscore_features.py +2 -1
- chalk/functions/__init__.py +456 -21
- chalk/functions/holidays.py +1 -3
- chalk/gitignore/gitignore_parser.py +5 -1
- chalk/importer.py +186 -74
- chalk/ml/__init__.py +6 -2
- chalk/ml/model_hooks.py +368 -51
- chalk/ml/model_reference.py +68 -10
- chalk/ml/model_version.py +34 -21
- chalk/ml/utils.py +143 -40
- chalk/operators/_utils.py +14 -3
- chalk/parsed/_proto/export.py +22 -0
- chalk/parsed/duplicate_input_gql.py +4 -0
- chalk/parsed/expressions.py +1 -3
- chalk/parsed/json_conversions.py +21 -14
- chalk/parsed/to_proto.py +16 -4
- chalk/parsed/user_types_to_json.py +31 -10
- chalk/parsed/validation_from_registries.py +182 -0
- chalk/queries/named_query.py +16 -6
- chalk/queries/scheduled_query.py +13 -1
- chalk/serialization/parsed_annotation.py +25 -12
- chalk/sql/__init__.py +221 -0
- chalk/sql/_internal/integrations/athena.py +6 -1
- chalk/sql/_internal/integrations/bigquery.py +22 -2
- chalk/sql/_internal/integrations/databricks.py +61 -18
- chalk/sql/_internal/integrations/mssql.py +281 -0
- chalk/sql/_internal/integrations/postgres.py +11 -3
- chalk/sql/_internal/integrations/redshift.py +4 -0
- chalk/sql/_internal/integrations/snowflake.py +11 -2
- chalk/sql/_internal/integrations/util.py +2 -1
- chalk/sql/_internal/sql_file_resolver.py +55 -10
- chalk/sql/_internal/sql_source.py +36 -2
- chalk/streams/__init__.py +1 -3
- chalk/streams/_kafka_source.py +5 -1
- chalk/streams/_windows.py +16 -4
- chalk/streams/types.py +1 -2
- chalk/utils/__init__.py +1 -3
- chalk/utils/_otel_version.py +13 -0
- chalk/utils/async_helpers.py +14 -5
- chalk/utils/df_utils.py +2 -2
- chalk/utils/duration.py +1 -3
- chalk/utils/job_log_display.py +538 -0
- chalk/utils/missing_dependency.py +5 -4
- chalk/utils/notebook.py +255 -2
- chalk/utils/pl_helpers.py +190 -37
- chalk/utils/pydanticutil/pydantic_compat.py +1 -2
- chalk/utils/storage_client.py +246 -0
- chalk/utils/threading.py +1 -3
- chalk/utils/tracing.py +194 -86
- {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/METADATA +53 -21
- {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/RECORD +268 -198
- {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/WHEEL +0 -0
- {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/entry_points.txt +0 -0
- {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
|
|
4
|
+
import grpc
|
|
5
|
+
|
|
6
|
+
from chalk._gen.chalk.streaming.v1 import debug_service_pb2 as chalk_dot_streaming_dot_v1_dot_debug__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class StreamingDebugServiceStub(object):
|
|
10
|
+
"""Streaming Debug Service
|
|
11
|
+
Provides APIs for managing and querying streaming resolver debug mode
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, channel):
|
|
15
|
+
"""Constructor.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
channel: A grpc.Channel.
|
|
19
|
+
"""
|
|
20
|
+
self.EnableDebugMode = channel.unary_unary(
|
|
21
|
+
"/chalk.streaming.v1.StreamingDebugService/EnableDebugMode",
|
|
22
|
+
request_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.EnableDebugModeRequest.SerializeToString,
|
|
23
|
+
response_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.EnableDebugModeResponse.FromString,
|
|
24
|
+
)
|
|
25
|
+
self.DisableDebugMode = channel.unary_unary(
|
|
26
|
+
"/chalk.streaming.v1.StreamingDebugService/DisableDebugMode",
|
|
27
|
+
request_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.DisableDebugModeRequest.SerializeToString,
|
|
28
|
+
response_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.DisableDebugModeResponse.FromString,
|
|
29
|
+
)
|
|
30
|
+
self.GetDebugModeStatus = channel.unary_unary(
|
|
31
|
+
"/chalk.streaming.v1.StreamingDebugService/GetDebugModeStatus",
|
|
32
|
+
request_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugModeStatusRequest.SerializeToString,
|
|
33
|
+
response_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugModeStatusResponse.FromString,
|
|
34
|
+
)
|
|
35
|
+
self.GetDebugMessages = channel.unary_unary(
|
|
36
|
+
"/chalk.streaming.v1.StreamingDebugService/GetDebugMessages",
|
|
37
|
+
request_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugMessagesRequest.SerializeToString,
|
|
38
|
+
response_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugMessagesResponse.FromString,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class StreamingDebugServiceServicer(object):
|
|
43
|
+
"""Streaming Debug Service
|
|
44
|
+
Provides APIs for managing and querying streaming resolver debug mode
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def EnableDebugMode(self, request, context):
|
|
48
|
+
"""Enable debug mode for a streaming resolver"""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details("Method not implemented!")
|
|
51
|
+
raise NotImplementedError("Method not implemented!")
|
|
52
|
+
|
|
53
|
+
def DisableDebugMode(self, request, context):
|
|
54
|
+
"""Disable debug mode for a streaming resolver"""
|
|
55
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
|
+
context.set_details("Method not implemented!")
|
|
57
|
+
raise NotImplementedError("Method not implemented!")
|
|
58
|
+
|
|
59
|
+
def GetDebugModeStatus(self, request, context):
|
|
60
|
+
"""Get the current debug mode status for a resolver"""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details("Method not implemented!")
|
|
63
|
+
raise NotImplementedError("Method not implemented!")
|
|
64
|
+
|
|
65
|
+
def GetDebugMessages(self, request, context):
|
|
66
|
+
"""Get recent debug messages as parquet"""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details("Method not implemented!")
|
|
69
|
+
raise NotImplementedError("Method not implemented!")
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def add_StreamingDebugServiceServicer_to_server(servicer, server):
|
|
73
|
+
rpc_method_handlers = {
|
|
74
|
+
"EnableDebugMode": grpc.unary_unary_rpc_method_handler(
|
|
75
|
+
servicer.EnableDebugMode,
|
|
76
|
+
request_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.EnableDebugModeRequest.FromString,
|
|
77
|
+
response_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.EnableDebugModeResponse.SerializeToString,
|
|
78
|
+
),
|
|
79
|
+
"DisableDebugMode": grpc.unary_unary_rpc_method_handler(
|
|
80
|
+
servicer.DisableDebugMode,
|
|
81
|
+
request_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.DisableDebugModeRequest.FromString,
|
|
82
|
+
response_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.DisableDebugModeResponse.SerializeToString,
|
|
83
|
+
),
|
|
84
|
+
"GetDebugModeStatus": grpc.unary_unary_rpc_method_handler(
|
|
85
|
+
servicer.GetDebugModeStatus,
|
|
86
|
+
request_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugModeStatusRequest.FromString,
|
|
87
|
+
response_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugModeStatusResponse.SerializeToString,
|
|
88
|
+
),
|
|
89
|
+
"GetDebugMessages": grpc.unary_unary_rpc_method_handler(
|
|
90
|
+
servicer.GetDebugMessages,
|
|
91
|
+
request_deserializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugMessagesRequest.FromString,
|
|
92
|
+
response_serializer=chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugMessagesResponse.SerializeToString,
|
|
93
|
+
),
|
|
94
|
+
}
|
|
95
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
96
|
+
"chalk.streaming.v1.StreamingDebugService", rpc_method_handlers
|
|
97
|
+
)
|
|
98
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# This class is part of an EXPERIMENTAL API.
|
|
102
|
+
class StreamingDebugService(object):
|
|
103
|
+
"""Streaming Debug Service
|
|
104
|
+
Provides APIs for managing and querying streaming resolver debug mode
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
@staticmethod
|
|
108
|
+
def EnableDebugMode(
|
|
109
|
+
request,
|
|
110
|
+
target,
|
|
111
|
+
options=(),
|
|
112
|
+
channel_credentials=None,
|
|
113
|
+
call_credentials=None,
|
|
114
|
+
insecure=False,
|
|
115
|
+
compression=None,
|
|
116
|
+
wait_for_ready=None,
|
|
117
|
+
timeout=None,
|
|
118
|
+
metadata=None,
|
|
119
|
+
):
|
|
120
|
+
return grpc.experimental.unary_unary(
|
|
121
|
+
request,
|
|
122
|
+
target,
|
|
123
|
+
"/chalk.streaming.v1.StreamingDebugService/EnableDebugMode",
|
|
124
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.EnableDebugModeRequest.SerializeToString,
|
|
125
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.EnableDebugModeResponse.FromString,
|
|
126
|
+
options,
|
|
127
|
+
channel_credentials,
|
|
128
|
+
insecure,
|
|
129
|
+
call_credentials,
|
|
130
|
+
compression,
|
|
131
|
+
wait_for_ready,
|
|
132
|
+
timeout,
|
|
133
|
+
metadata,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
@staticmethod
|
|
137
|
+
def DisableDebugMode(
|
|
138
|
+
request,
|
|
139
|
+
target,
|
|
140
|
+
options=(),
|
|
141
|
+
channel_credentials=None,
|
|
142
|
+
call_credentials=None,
|
|
143
|
+
insecure=False,
|
|
144
|
+
compression=None,
|
|
145
|
+
wait_for_ready=None,
|
|
146
|
+
timeout=None,
|
|
147
|
+
metadata=None,
|
|
148
|
+
):
|
|
149
|
+
return grpc.experimental.unary_unary(
|
|
150
|
+
request,
|
|
151
|
+
target,
|
|
152
|
+
"/chalk.streaming.v1.StreamingDebugService/DisableDebugMode",
|
|
153
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.DisableDebugModeRequest.SerializeToString,
|
|
154
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.DisableDebugModeResponse.FromString,
|
|
155
|
+
options,
|
|
156
|
+
channel_credentials,
|
|
157
|
+
insecure,
|
|
158
|
+
call_credentials,
|
|
159
|
+
compression,
|
|
160
|
+
wait_for_ready,
|
|
161
|
+
timeout,
|
|
162
|
+
metadata,
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
@staticmethod
|
|
166
|
+
def GetDebugModeStatus(
|
|
167
|
+
request,
|
|
168
|
+
target,
|
|
169
|
+
options=(),
|
|
170
|
+
channel_credentials=None,
|
|
171
|
+
call_credentials=None,
|
|
172
|
+
insecure=False,
|
|
173
|
+
compression=None,
|
|
174
|
+
wait_for_ready=None,
|
|
175
|
+
timeout=None,
|
|
176
|
+
metadata=None,
|
|
177
|
+
):
|
|
178
|
+
return grpc.experimental.unary_unary(
|
|
179
|
+
request,
|
|
180
|
+
target,
|
|
181
|
+
"/chalk.streaming.v1.StreamingDebugService/GetDebugModeStatus",
|
|
182
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugModeStatusRequest.SerializeToString,
|
|
183
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugModeStatusResponse.FromString,
|
|
184
|
+
options,
|
|
185
|
+
channel_credentials,
|
|
186
|
+
insecure,
|
|
187
|
+
call_credentials,
|
|
188
|
+
compression,
|
|
189
|
+
wait_for_ready,
|
|
190
|
+
timeout,
|
|
191
|
+
metadata,
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
@staticmethod
|
|
195
|
+
def GetDebugMessages(
|
|
196
|
+
request,
|
|
197
|
+
target,
|
|
198
|
+
options=(),
|
|
199
|
+
channel_credentials=None,
|
|
200
|
+
call_credentials=None,
|
|
201
|
+
insecure=False,
|
|
202
|
+
compression=None,
|
|
203
|
+
wait_for_ready=None,
|
|
204
|
+
timeout=None,
|
|
205
|
+
metadata=None,
|
|
206
|
+
):
|
|
207
|
+
return grpc.experimental.unary_unary(
|
|
208
|
+
request,
|
|
209
|
+
target,
|
|
210
|
+
"/chalk.streaming.v1.StreamingDebugService/GetDebugMessages",
|
|
211
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugMessagesRequest.SerializeToString,
|
|
212
|
+
chalk_dot_streaming_dot_v1_dot_debug__service__pb2.GetDebugMessagesResponse.FromString,
|
|
213
|
+
options,
|
|
214
|
+
channel_credentials,
|
|
215
|
+
insecure,
|
|
216
|
+
call_credentials,
|
|
217
|
+
compression,
|
|
218
|
+
wait_for_ready,
|
|
219
|
+
timeout,
|
|
220
|
+
metadata,
|
|
221
|
+
)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from abc import (
|
|
7
|
+
ABCMeta,
|
|
8
|
+
abstractmethod,
|
|
9
|
+
)
|
|
10
|
+
from chalk._gen.chalk.streaming.v1.debug_service_pb2 import (
|
|
11
|
+
DisableDebugModeRequest,
|
|
12
|
+
DisableDebugModeResponse,
|
|
13
|
+
EnableDebugModeRequest,
|
|
14
|
+
EnableDebugModeResponse,
|
|
15
|
+
GetDebugMessagesRequest,
|
|
16
|
+
GetDebugMessagesResponse,
|
|
17
|
+
GetDebugModeStatusRequest,
|
|
18
|
+
GetDebugModeStatusResponse,
|
|
19
|
+
)
|
|
20
|
+
from grpc import (
|
|
21
|
+
Channel,
|
|
22
|
+
Server,
|
|
23
|
+
ServicerContext,
|
|
24
|
+
UnaryUnaryMultiCallable,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
class StreamingDebugServiceStub:
|
|
28
|
+
"""Streaming Debug Service
|
|
29
|
+
Provides APIs for managing and querying streaming resolver debug mode
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel: Channel) -> None: ...
|
|
33
|
+
EnableDebugMode: UnaryUnaryMultiCallable[
|
|
34
|
+
EnableDebugModeRequest,
|
|
35
|
+
EnableDebugModeResponse,
|
|
36
|
+
]
|
|
37
|
+
"""Enable debug mode for a streaming resolver"""
|
|
38
|
+
DisableDebugMode: UnaryUnaryMultiCallable[
|
|
39
|
+
DisableDebugModeRequest,
|
|
40
|
+
DisableDebugModeResponse,
|
|
41
|
+
]
|
|
42
|
+
"""Disable debug mode for a streaming resolver"""
|
|
43
|
+
GetDebugModeStatus: UnaryUnaryMultiCallable[
|
|
44
|
+
GetDebugModeStatusRequest,
|
|
45
|
+
GetDebugModeStatusResponse,
|
|
46
|
+
]
|
|
47
|
+
"""Get the current debug mode status for a resolver"""
|
|
48
|
+
GetDebugMessages: UnaryUnaryMultiCallable[
|
|
49
|
+
GetDebugMessagesRequest,
|
|
50
|
+
GetDebugMessagesResponse,
|
|
51
|
+
]
|
|
52
|
+
"""Get recent debug messages as parquet"""
|
|
53
|
+
|
|
54
|
+
class StreamingDebugServiceServicer(metaclass=ABCMeta):
|
|
55
|
+
"""Streaming Debug Service
|
|
56
|
+
Provides APIs for managing and querying streaming resolver debug mode
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
@abstractmethod
|
|
60
|
+
def EnableDebugMode(
|
|
61
|
+
self,
|
|
62
|
+
request: EnableDebugModeRequest,
|
|
63
|
+
context: ServicerContext,
|
|
64
|
+
) -> EnableDebugModeResponse:
|
|
65
|
+
"""Enable debug mode for a streaming resolver"""
|
|
66
|
+
@abstractmethod
|
|
67
|
+
def DisableDebugMode(
|
|
68
|
+
self,
|
|
69
|
+
request: DisableDebugModeRequest,
|
|
70
|
+
context: ServicerContext,
|
|
71
|
+
) -> DisableDebugModeResponse:
|
|
72
|
+
"""Disable debug mode for a streaming resolver"""
|
|
73
|
+
@abstractmethod
|
|
74
|
+
def GetDebugModeStatus(
|
|
75
|
+
self,
|
|
76
|
+
request: GetDebugModeStatusRequest,
|
|
77
|
+
context: ServicerContext,
|
|
78
|
+
) -> GetDebugModeStatusResponse:
|
|
79
|
+
"""Get the current debug mode status for a resolver"""
|
|
80
|
+
@abstractmethod
|
|
81
|
+
def GetDebugMessages(
|
|
82
|
+
self,
|
|
83
|
+
request: GetDebugMessagesRequest,
|
|
84
|
+
context: ServicerContext,
|
|
85
|
+
) -> GetDebugMessagesResponse:
|
|
86
|
+
"""Get recent debug messages as parquet"""
|
|
87
|
+
|
|
88
|
+
def add_StreamingDebugServiceServicer_to_server(servicer: StreamingDebugServiceServicer, server: Server) -> None: ...
|
|
@@ -18,7 +18,7 @@ from chalk._gen.chalk.common.v1 import chalk_error_pb2 as chalk_dot_common_dot_v
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
21
|
-
b'\n1chalk/streaming/v1/simple_streaming_service.proto\x12\x12\x63halk.streaming.v1\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a!chalk/common/v1/chalk_error.proto"\
|
|
21
|
+
b'\n1chalk/streaming/v1/simple_streaming_service.proto\x12\x12\x63halk.streaming.v1\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a!chalk/common/v1/chalk_error.proto"\xa0\x01\n\x0eStreamingError\x12\x31\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x05\x65rror\x12\x38\n\x05phase\x18\x02 \x01(\x0e\x32".chalk.streaming.v1.ExecutionPhaseR\x05phase\x12!\n\x0coperation_id\x18\x03 \x01(\tR\x0boperationId"\xd6\x01\n!SimpleStreamingUnaryInvokeRequest\x12\x34\n\x16streaming_resolver_fqn\x18\x01 \x01(\tR\x14streamingResolverFqn\x12\x1d\n\ninput_data\x18\x02 \x01(\x0cR\tinputData\x12&\n\x0coperation_id\x18\x03 \x01(\tH\x00R\x0boperationId\x88\x01\x01\x12\x19\n\x05\x64\x65\x62ug\x18\x04 \x01(\x08H\x01R\x05\x64\x65\x62ug\x88\x01\x01\x42\x0f\n\r_operation_idB\x08\n\x06_debug"\xe7\x02\n"SimpleStreamingUnaryInvokeResponse\x12(\n\x10num_rows_succeed\x18\x01 \x01(\x03R\x0enumRowsSucceed\x12&\n\x0fnum_rows_failed\x18\x02 \x01(\x03R\rnumRowsFailed\x12(\n\x10num_rows_skipped\x18\x03 \x01(\x03R\x0enumRowsSkipped\x12\x36\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1b.chalk.common.v1.ChalkErrorH\x00R\x05\x65rror\x88\x01\x01\x12$\n\x0boutput_data\x18\x05 \x01(\x0cH\x01R\noutputData\x88\x01\x01\x12M\n\x10\x65xecution_errors\x18\x06 \x03(\x0b\x32".chalk.streaming.v1.StreamingErrorR\x0f\x65xecutionErrorsB\x08\n\x06_errorB\x0e\n\x0c_output_data"\xb5\x02\n\x1cTestStreamingResolverRequest\x12&\n\x0cresolver_fqn\x18\x01 \x01(\tH\x00R\x0bresolverFqn\x88\x01\x01\x12@\n\x1astatic_stream_resolver_b64\x18\x02 \x01(\tH\x01R\x17staticStreamResolverB64\x88\x01\x01\x12\x1d\n\ninput_data\x18\x03 \x01(\x0cR\tinputData\x12&\n\x0coperation_id\x18\x04 \x01(\tH\x02R\x0boperationId\x88\x01\x01\x12\x19\n\x05\x64\x65\x62ug\x18\x05 \x01(\x08H\x03R\x05\x64\x65\x62ug\x88\x01\x01\x42\x0f\n\r_resolver_fqnB\x1d\n\x1b_static_stream_resolver_b64B\x0f\n\r_operation_idB\x08\n\x06_debug"\xe1\x01\n\x1dTestStreamingResolverResponse\x12\x44\n\x06status\x18\x01 \x01(\x0e\x32,.chalk.streaming.v1.TestStreamResolverStatusR\x06status\x12\x1e\n\x08\x64\x61ta_uri\x18\x02 \x01(\tH\x00R\x07\x64\x61taUri\x88\x01\x01\x12\x33\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors\x12\x18\n\x07message\x18\x04 \x01(\tR\x07messageB\x0b\n\t_data_uri*\xc5\x01\n\x0e\x45xecutionPhase\x12\x1f\n\x1b\x45XECUTION_PHASE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45XECUTION_PHASE_PARSE\x10\x01\x12\x1b\n\x17\x45XECUTION_PHASE_MAPPING\x10\x02\x12\x1f\n\x1b\x45XECUTION_PHASE_PERSISTENCE\x10\x03\x12\x1f\n\x1b\x45XECUTION_PHASE_AGGREGATION\x10\x04\x12\x18\n\x14\x45XECUTION_PHASE_SINK\x10\x05*\x99\x01\n\x18TestStreamResolverStatus\x12+\n\'TEST_STREAM_RESOLVER_STATUS_UNSPECIFIED\x10\x00\x12\'\n#TEST_STREAM_RESOLVER_STATUS_SUCCESS\x10\x01\x12\'\n#TEST_STREAM_RESOLVER_STATUS_FAILURE\x10\x02\x32\xaf\x02\n\x16SimpleStreamingService\x12\x90\x01\n\x1aSimpleStreamingUnaryInvoke\x12\x35.chalk.streaming.v1.SimpleStreamingUnaryInvokeRequest\x1a\x36.chalk.streaming.v1.SimpleStreamingUnaryInvokeResponse"\x03\x80}\x02\x12\x81\x01\n\x15TestStreamingResolver\x12\x30.chalk.streaming.v1.TestStreamingResolverRequest\x1a\x31.chalk.streaming.v1.TestStreamingResolverResponse"\x03\x80}\x02\x42\x9f\x01\n\x16\x63om.chalk.streaming.v1B\x1bSimpleStreamingServiceProtoP\x01\xa2\x02\x03\x43SX\xaa\x02\x12\x43halk.Streaming.V1\xca\x02\x12\x43halk\\Streaming\\V1\xe2\x02\x1e\x43halk\\Streaming\\V1\\GPBMetadata\xea\x02\x14\x43halk::Streaming::V1b\x06proto3'
|
|
22
22
|
)
|
|
23
23
|
|
|
24
24
|
_globals = globals()
|
|
@@ -31,10 +31,22 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
31
31
|
]._serialized_options = b"\n\026com.chalk.streaming.v1B\033SimpleStreamingServiceProtoP\001\242\002\003CSX\252\002\022Chalk.Streaming.V1\312\002\022Chalk\\Streaming\\V1\342\002\036Chalk\\Streaming\\V1\\GPBMetadata\352\002\024Chalk::Streaming::V1"
|
|
32
32
|
_globals["_SIMPLESTREAMINGSERVICE"].methods_by_name["SimpleStreamingUnaryInvoke"]._options = None
|
|
33
33
|
_globals["_SIMPLESTREAMINGSERVICE"].methods_by_name["SimpleStreamingUnaryInvoke"]._serialized_options = b"\200}\002"
|
|
34
|
-
_globals["
|
|
35
|
-
_globals["
|
|
36
|
-
_globals["
|
|
37
|
-
_globals["
|
|
38
|
-
_globals["
|
|
39
|
-
_globals["
|
|
34
|
+
_globals["_SIMPLESTREAMINGSERVICE"].methods_by_name["TestStreamingResolver"]._options = None
|
|
35
|
+
_globals["_SIMPLESTREAMINGSERVICE"].methods_by_name["TestStreamingResolver"]._serialized_options = b"\200}\002"
|
|
36
|
+
_globals["_EXECUTIONPHASE"]._serialized_start = 1424
|
|
37
|
+
_globals["_EXECUTIONPHASE"]._serialized_end = 1621
|
|
38
|
+
_globals["_TESTSTREAMRESOLVERSTATUS"]._serialized_start = 1624
|
|
39
|
+
_globals["_TESTSTREAMRESOLVERSTATUS"]._serialized_end = 1777
|
|
40
|
+
_globals["_STREAMINGERROR"]._serialized_start = 142
|
|
41
|
+
_globals["_STREAMINGERROR"]._serialized_end = 302
|
|
42
|
+
_globals["_SIMPLESTREAMINGUNARYINVOKEREQUEST"]._serialized_start = 305
|
|
43
|
+
_globals["_SIMPLESTREAMINGUNARYINVOKEREQUEST"]._serialized_end = 519
|
|
44
|
+
_globals["_SIMPLESTREAMINGUNARYINVOKERESPONSE"]._serialized_start = 522
|
|
45
|
+
_globals["_SIMPLESTREAMINGUNARYINVOKERESPONSE"]._serialized_end = 881
|
|
46
|
+
_globals["_TESTSTREAMINGRESOLVERREQUEST"]._serialized_start = 884
|
|
47
|
+
_globals["_TESTSTREAMINGRESOLVERREQUEST"]._serialized_end = 1193
|
|
48
|
+
_globals["_TESTSTREAMINGRESOLVERRESPONSE"]._serialized_start = 1196
|
|
49
|
+
_globals["_TESTSTREAMINGRESOLVERRESPONSE"]._serialized_end = 1421
|
|
50
|
+
_globals["_SIMPLESTREAMINGSERVICE"]._serialized_start = 1780
|
|
51
|
+
_globals["_SIMPLESTREAMINGSERVICE"]._serialized_end = 2083
|
|
40
52
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,38 +1,91 @@
|
|
|
1
1
|
from chalk._gen.chalk.auth.v1 import permissions_pb2 as _permissions_pb2
|
|
2
2
|
from chalk._gen.chalk.common.v1 import chalk_error_pb2 as _chalk_error_pb2
|
|
3
|
+
from google.protobuf.internal import containers as _containers
|
|
4
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
3
5
|
from google.protobuf import descriptor as _descriptor
|
|
4
6
|
from google.protobuf import message as _message
|
|
5
|
-
from typing import
|
|
7
|
+
from typing import (
|
|
8
|
+
ClassVar as _ClassVar,
|
|
9
|
+
Iterable as _Iterable,
|
|
10
|
+
Mapping as _Mapping,
|
|
11
|
+
Optional as _Optional,
|
|
12
|
+
Union as _Union,
|
|
13
|
+
)
|
|
6
14
|
|
|
7
15
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
16
|
|
|
17
|
+
class ExecutionPhase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
18
|
+
__slots__ = ()
|
|
19
|
+
EXECUTION_PHASE_UNSPECIFIED: _ClassVar[ExecutionPhase]
|
|
20
|
+
EXECUTION_PHASE_PARSE: _ClassVar[ExecutionPhase]
|
|
21
|
+
EXECUTION_PHASE_MAPPING: _ClassVar[ExecutionPhase]
|
|
22
|
+
EXECUTION_PHASE_PERSISTENCE: _ClassVar[ExecutionPhase]
|
|
23
|
+
EXECUTION_PHASE_AGGREGATION: _ClassVar[ExecutionPhase]
|
|
24
|
+
EXECUTION_PHASE_SINK: _ClassVar[ExecutionPhase]
|
|
25
|
+
|
|
26
|
+
class TestStreamResolverStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
27
|
+
__slots__ = ()
|
|
28
|
+
TEST_STREAM_RESOLVER_STATUS_UNSPECIFIED: _ClassVar[TestStreamResolverStatus]
|
|
29
|
+
TEST_STREAM_RESOLVER_STATUS_SUCCESS: _ClassVar[TestStreamResolverStatus]
|
|
30
|
+
TEST_STREAM_RESOLVER_STATUS_FAILURE: _ClassVar[TestStreamResolverStatus]
|
|
31
|
+
|
|
32
|
+
EXECUTION_PHASE_UNSPECIFIED: ExecutionPhase
|
|
33
|
+
EXECUTION_PHASE_PARSE: ExecutionPhase
|
|
34
|
+
EXECUTION_PHASE_MAPPING: ExecutionPhase
|
|
35
|
+
EXECUTION_PHASE_PERSISTENCE: ExecutionPhase
|
|
36
|
+
EXECUTION_PHASE_AGGREGATION: ExecutionPhase
|
|
37
|
+
EXECUTION_PHASE_SINK: ExecutionPhase
|
|
38
|
+
TEST_STREAM_RESOLVER_STATUS_UNSPECIFIED: TestStreamResolverStatus
|
|
39
|
+
TEST_STREAM_RESOLVER_STATUS_SUCCESS: TestStreamResolverStatus
|
|
40
|
+
TEST_STREAM_RESOLVER_STATUS_FAILURE: TestStreamResolverStatus
|
|
41
|
+
|
|
42
|
+
class StreamingError(_message.Message):
|
|
43
|
+
__slots__ = ("error", "phase", "operation_id")
|
|
44
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
PHASE_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
OPERATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
error: _chalk_error_pb2.ChalkError
|
|
48
|
+
phase: ExecutionPhase
|
|
49
|
+
operation_id: str
|
|
50
|
+
def __init__(
|
|
51
|
+
self,
|
|
52
|
+
error: _Optional[_Union[_chalk_error_pb2.ChalkError, _Mapping]] = ...,
|
|
53
|
+
phase: _Optional[_Union[ExecutionPhase, str]] = ...,
|
|
54
|
+
operation_id: _Optional[str] = ...,
|
|
55
|
+
) -> None: ...
|
|
56
|
+
|
|
9
57
|
class SimpleStreamingUnaryInvokeRequest(_message.Message):
|
|
10
|
-
__slots__ = ("streaming_resolver_fqn", "input_data", "operation_id")
|
|
58
|
+
__slots__ = ("streaming_resolver_fqn", "input_data", "operation_id", "debug")
|
|
11
59
|
STREAMING_RESOLVER_FQN_FIELD_NUMBER: _ClassVar[int]
|
|
12
60
|
INPUT_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
13
61
|
OPERATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
DEBUG_FIELD_NUMBER: _ClassVar[int]
|
|
14
63
|
streaming_resolver_fqn: str
|
|
15
64
|
input_data: bytes
|
|
16
65
|
operation_id: str
|
|
66
|
+
debug: bool
|
|
17
67
|
def __init__(
|
|
18
68
|
self,
|
|
19
69
|
streaming_resolver_fqn: _Optional[str] = ...,
|
|
20
70
|
input_data: _Optional[bytes] = ...,
|
|
21
71
|
operation_id: _Optional[str] = ...,
|
|
72
|
+
debug: bool = ...,
|
|
22
73
|
) -> None: ...
|
|
23
74
|
|
|
24
75
|
class SimpleStreamingUnaryInvokeResponse(_message.Message):
|
|
25
|
-
__slots__ = ("num_rows_succeed", "num_rows_failed", "num_rows_skipped", "error", "output_data")
|
|
76
|
+
__slots__ = ("num_rows_succeed", "num_rows_failed", "num_rows_skipped", "error", "output_data", "execution_errors")
|
|
26
77
|
NUM_ROWS_SUCCEED_FIELD_NUMBER: _ClassVar[int]
|
|
27
78
|
NUM_ROWS_FAILED_FIELD_NUMBER: _ClassVar[int]
|
|
28
79
|
NUM_ROWS_SKIPPED_FIELD_NUMBER: _ClassVar[int]
|
|
29
80
|
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
30
81
|
OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
EXECUTION_ERRORS_FIELD_NUMBER: _ClassVar[int]
|
|
31
83
|
num_rows_succeed: int
|
|
32
84
|
num_rows_failed: int
|
|
33
85
|
num_rows_skipped: int
|
|
34
86
|
error: _chalk_error_pb2.ChalkError
|
|
35
87
|
output_data: bytes
|
|
88
|
+
execution_errors: _containers.RepeatedCompositeFieldContainer[StreamingError]
|
|
36
89
|
def __init__(
|
|
37
90
|
self,
|
|
38
91
|
num_rows_succeed: _Optional[int] = ...,
|
|
@@ -40,4 +93,44 @@ class SimpleStreamingUnaryInvokeResponse(_message.Message):
|
|
|
40
93
|
num_rows_skipped: _Optional[int] = ...,
|
|
41
94
|
error: _Optional[_Union[_chalk_error_pb2.ChalkError, _Mapping]] = ...,
|
|
42
95
|
output_data: _Optional[bytes] = ...,
|
|
96
|
+
execution_errors: _Optional[_Iterable[_Union[StreamingError, _Mapping]]] = ...,
|
|
97
|
+
) -> None: ...
|
|
98
|
+
|
|
99
|
+
class TestStreamingResolverRequest(_message.Message):
|
|
100
|
+
__slots__ = ("resolver_fqn", "static_stream_resolver_b64", "input_data", "operation_id", "debug")
|
|
101
|
+
RESOLVER_FQN_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
STATIC_STREAM_RESOLVER_B64_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
INPUT_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
OPERATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
DEBUG_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
resolver_fqn: str
|
|
107
|
+
static_stream_resolver_b64: str
|
|
108
|
+
input_data: bytes
|
|
109
|
+
operation_id: str
|
|
110
|
+
debug: bool
|
|
111
|
+
def __init__(
|
|
112
|
+
self,
|
|
113
|
+
resolver_fqn: _Optional[str] = ...,
|
|
114
|
+
static_stream_resolver_b64: _Optional[str] = ...,
|
|
115
|
+
input_data: _Optional[bytes] = ...,
|
|
116
|
+
operation_id: _Optional[str] = ...,
|
|
117
|
+
debug: bool = ...,
|
|
118
|
+
) -> None: ...
|
|
119
|
+
|
|
120
|
+
class TestStreamingResolverResponse(_message.Message):
|
|
121
|
+
__slots__ = ("status", "data_uri", "errors", "message")
|
|
122
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
DATA_URI_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
ERRORS_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
status: TestStreamResolverStatus
|
|
127
|
+
data_uri: str
|
|
128
|
+
errors: _containers.RepeatedCompositeFieldContainer[_chalk_error_pb2.ChalkError]
|
|
129
|
+
message: str
|
|
130
|
+
def __init__(
|
|
131
|
+
self,
|
|
132
|
+
status: _Optional[_Union[TestStreamResolverStatus, str]] = ...,
|
|
133
|
+
data_uri: _Optional[str] = ...,
|
|
134
|
+
errors: _Optional[_Iterable[_Union[_chalk_error_pb2.ChalkError, _Mapping]]] = ...,
|
|
135
|
+
message: _Optional[str] = ...,
|
|
43
136
|
) -> None: ...
|
|
@@ -22,6 +22,11 @@ class SimpleStreamingServiceStub(object):
|
|
|
22
22
|
request_serializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.SimpleStreamingUnaryInvokeRequest.SerializeToString,
|
|
23
23
|
response_deserializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.SimpleStreamingUnaryInvokeResponse.FromString,
|
|
24
24
|
)
|
|
25
|
+
self.TestStreamingResolver = channel.unary_unary(
|
|
26
|
+
"/chalk.streaming.v1.SimpleStreamingService/TestStreamingResolver",
|
|
27
|
+
request_serializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.TestStreamingResolverRequest.SerializeToString,
|
|
28
|
+
response_deserializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.TestStreamingResolverResponse.FromString,
|
|
29
|
+
)
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
class SimpleStreamingServiceServicer(object):
|
|
@@ -35,6 +40,15 @@ class SimpleStreamingServiceServicer(object):
|
|
|
35
40
|
context.set_details("Method not implemented!")
|
|
36
41
|
raise NotImplementedError("Method not implemented!")
|
|
37
42
|
|
|
43
|
+
def TestStreamingResolver(self, request, context):
|
|
44
|
+
"""Test a streaming resolver with provided messages.
|
|
45
|
+
Supports testing both deployed resolvers and static/undeployed resolvers.
|
|
46
|
+
Returns a signed URL to download the test results.
|
|
47
|
+
"""
|
|
48
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
49
|
+
context.set_details("Method not implemented!")
|
|
50
|
+
raise NotImplementedError("Method not implemented!")
|
|
51
|
+
|
|
38
52
|
|
|
39
53
|
def add_SimpleStreamingServiceServicer_to_server(servicer, server):
|
|
40
54
|
rpc_method_handlers = {
|
|
@@ -43,6 +57,11 @@ def add_SimpleStreamingServiceServicer_to_server(servicer, server):
|
|
|
43
57
|
request_deserializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.SimpleStreamingUnaryInvokeRequest.FromString,
|
|
44
58
|
response_serializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.SimpleStreamingUnaryInvokeResponse.SerializeToString,
|
|
45
59
|
),
|
|
60
|
+
"TestStreamingResolver": grpc.unary_unary_rpc_method_handler(
|
|
61
|
+
servicer.TestStreamingResolver,
|
|
62
|
+
request_deserializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.TestStreamingResolverRequest.FromString,
|
|
63
|
+
response_serializer=chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.TestStreamingResolverResponse.SerializeToString,
|
|
64
|
+
),
|
|
46
65
|
}
|
|
47
66
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
48
67
|
"chalk.streaming.v1.SimpleStreamingService", rpc_method_handlers
|
|
@@ -82,3 +101,32 @@ class SimpleStreamingService(object):
|
|
|
82
101
|
timeout,
|
|
83
102
|
metadata,
|
|
84
103
|
)
|
|
104
|
+
|
|
105
|
+
@staticmethod
|
|
106
|
+
def TestStreamingResolver(
|
|
107
|
+
request,
|
|
108
|
+
target,
|
|
109
|
+
options=(),
|
|
110
|
+
channel_credentials=None,
|
|
111
|
+
call_credentials=None,
|
|
112
|
+
insecure=False,
|
|
113
|
+
compression=None,
|
|
114
|
+
wait_for_ready=None,
|
|
115
|
+
timeout=None,
|
|
116
|
+
metadata=None,
|
|
117
|
+
):
|
|
118
|
+
return grpc.experimental.unary_unary(
|
|
119
|
+
request,
|
|
120
|
+
target,
|
|
121
|
+
"/chalk.streaming.v1.SimpleStreamingService/TestStreamingResolver",
|
|
122
|
+
chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.TestStreamingResolverRequest.SerializeToString,
|
|
123
|
+
chalk_dot_streaming_dot_v1_dot_simple__streaming__service__pb2.TestStreamingResolverResponse.FromString,
|
|
124
|
+
options,
|
|
125
|
+
channel_credentials,
|
|
126
|
+
insecure,
|
|
127
|
+
call_credentials,
|
|
128
|
+
compression,
|
|
129
|
+
wait_for_ready,
|
|
130
|
+
timeout,
|
|
131
|
+
metadata,
|
|
132
|
+
)
|
|
@@ -10,6 +10,8 @@ from abc import (
|
|
|
10
10
|
from chalk._gen.chalk.streaming.v1.simple_streaming_service_pb2 import (
|
|
11
11
|
SimpleStreamingUnaryInvokeRequest,
|
|
12
12
|
SimpleStreamingUnaryInvokeResponse,
|
|
13
|
+
TestStreamingResolverRequest,
|
|
14
|
+
TestStreamingResolverResponse,
|
|
13
15
|
)
|
|
14
16
|
from grpc import (
|
|
15
17
|
Channel,
|
|
@@ -27,6 +29,14 @@ class SimpleStreamingServiceStub:
|
|
|
27
29
|
"""Runs a simple streaming plan with the given request.
|
|
28
30
|
This is a simplified version of the streaming invoker service.
|
|
29
31
|
"""
|
|
32
|
+
TestStreamingResolver: UnaryUnaryMultiCallable[
|
|
33
|
+
TestStreamingResolverRequest,
|
|
34
|
+
TestStreamingResolverResponse,
|
|
35
|
+
]
|
|
36
|
+
"""Test a streaming resolver with provided messages.
|
|
37
|
+
Supports testing both deployed resolvers and static/undeployed resolvers.
|
|
38
|
+
Returns a signed URL to download the test results.
|
|
39
|
+
"""
|
|
30
40
|
|
|
31
41
|
class SimpleStreamingServiceServicer(metaclass=ABCMeta):
|
|
32
42
|
@abstractmethod
|
|
@@ -38,5 +48,15 @@ class SimpleStreamingServiceServicer(metaclass=ABCMeta):
|
|
|
38
48
|
"""Runs a simple streaming plan with the given request.
|
|
39
49
|
This is a simplified version of the streaming invoker service.
|
|
40
50
|
"""
|
|
51
|
+
@abstractmethod
|
|
52
|
+
def TestStreamingResolver(
|
|
53
|
+
self,
|
|
54
|
+
request: TestStreamingResolverRequest,
|
|
55
|
+
context: ServicerContext,
|
|
56
|
+
) -> TestStreamingResolverResponse:
|
|
57
|
+
"""Test a streaming resolver with provided messages.
|
|
58
|
+
Supports testing both deployed resolvers and static/undeployed resolvers.
|
|
59
|
+
Returns a signed URL to download the test results.
|
|
60
|
+
"""
|
|
41
61
|
|
|
42
62
|
def add_SimpleStreamingServiceServicer_to_server(servicer: SimpleStreamingServiceServicer, server: Server) -> None: ...
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: chalk/utils/v1/field_change.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.3
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
10
|
+
from google.protobuf.internal import builder as _builder
|
|
11
|
+
# @@protoc_insertion_point(imports)
|
|
12
|
+
|
|
13
|
+
_sym_db = _symbol_database.Default()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
17
|
+
b'\n!chalk/utils/v1/field_change.proto\x12\x0e\x63halk.utils.v1"\xe0\x01\n\x0b\x46ieldChange\x12\x1d\n\nfield_name\x18\x01 \x01(\tR\tfieldName\x12*\n\x0eprevious_value\x18\x02 \x01(\tH\x00R\rpreviousValue\x88\x01\x01\x12 \n\tnew_value\x18\x03 \x01(\tH\x01R\x08newValue\x88\x01\x01\x12\x43\n\x0enested_changes\x18\x04 \x03(\x0b\x32\x1c.chalk.utils.v1.NestedChangeR\rnestedChangesB\x11\n\x0f_previous_valueB\x0c\n\n_new_value"\x91\x01\n\x0cNestedChange\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12*\n\x0eprevious_value\x18\x02 \x01(\tH\x00R\rpreviousValue\x88\x01\x01\x12 \n\tnew_value\x18\x03 \x01(\tH\x01R\x08newValue\x88\x01\x01\x42\x11\n\x0f_previous_valueB\x0c\n\n_new_valueB\x80\x01\n\x12\x63om.chalk.utils.v1B\x10\x46ieldChangeProtoP\x01\xa2\x02\x03\x43UX\xaa\x02\x0e\x43halk.Utils.V1\xca\x02\x0e\x43halk\\Utils\\V1\xe2\x02\x1a\x43halk\\Utils\\V1\\GPBMetadata\xea\x02\x10\x43halk::Utils::V1b\x06proto3'
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "chalk.utils.v1.field_change_pb2", _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
_globals["DESCRIPTOR"]._options = None
|
|
25
|
+
_globals[
|
|
26
|
+
"DESCRIPTOR"
|
|
27
|
+
]._serialized_options = b"\n\022com.chalk.utils.v1B\020FieldChangeProtoP\001\242\002\003CUX\252\002\016Chalk.Utils.V1\312\002\016Chalk\\Utils\\V1\342\002\032Chalk\\Utils\\V1\\GPBMetadata\352\002\020Chalk::Utils::V1"
|
|
28
|
+
_globals["_FIELDCHANGE"]._serialized_start = 54
|
|
29
|
+
_globals["_FIELDCHANGE"]._serialized_end = 278
|
|
30
|
+
_globals["_NESTEDCHANGE"]._serialized_start = 281
|
|
31
|
+
_globals["_NESTEDCHANGE"]._serialized_end = 426
|
|
32
|
+
# @@protoc_insertion_point(module_scope)
|