chalkruntime 3.43.99__tar.gz → 3.43.100__tar.gz
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.
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/PKG-INFO +1 -1
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/convert_chalkpy_underscore.py +2 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/protograph_deserializer.py +10 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/resolver.py +3 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/one_to_one_invoker.py +1 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/loader/converter.py +22 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime.egg-info/PKG-INFO +1 -1
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/pyproject.toml +1 -1
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/README.md +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/constants.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/dataframe/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/dataframe/dataframe.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/dataframe/lazyframe.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/exc/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/exc/failed_argument.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/exc/resolver_errors.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/exc/wrapped_resolver_exception.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/_sql_source_pickle_patch.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/chalk_overload.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/dataframe_resolver_correlation.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/feature.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/feature_alias.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/filter_conversion.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/global_graph.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/graph.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/graph_impl.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/graph_proxy.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/graph_state.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/jinja_parser.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/lazy_graph.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/mat_agg_filter_expression.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/materializations.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/materialized_feature_view.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/maybe_named_collection.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/named_query.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/nearest_neighbor.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/overlay_graph.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/protograph_serializer.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/pseudofeatures.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/singletons.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/sklearn_model_parser.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/source_secrets.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/stream_resolver.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/underscore.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/underscore_codec_info.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/underscore_operation_registry.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/variables.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/has_many_join_keys.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/heaptrack_launcher.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/incrementalization/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/incrementalization/group_incrementalizer.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/incrementalization/incrementalizer.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/batch_result_collector.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/bound_invoker.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/bound_invoker_cache.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/general_bound_invoker.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/no_arg_scalar_invoker.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/overlay_features.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/parse_external_resolver.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/partition_batch.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/query_execution_parameters.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_args_builder.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_input.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_input_upload.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_output_metadata.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_raw_output_parsing.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_result.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_runner.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/sample.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/validator.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/vectorized_hasmany_sampler.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/loader/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/loader/importer.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/memray_launcher.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/metadata.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/py.typed +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/before_all_hooks_run.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/branch_model_endpoint_config.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/config.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/entrypoint.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/env_helper.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/remote_python_function_registry_client.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/server_context_snapshot.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/service.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/subprocess_hook_service.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/composed_rewriter.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/contextual_query_rewriter.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/filter_injection_site.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/filter_query_rewriter.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/identity_rewriter.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/query_rewriter.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/query_rewriter_helper.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/sqlglot_import_lock.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/sqlglot_parsing.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sqlalchemy_mysql_keepalive.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/converter_utils.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/exc.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/message_parsing.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/resolver_utils.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/streaming_invoker_kernel/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/streaming_invoker_kernel/local_streaming_invoker_kernel.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/types.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/streaming/window_keys.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/__init__.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/async_helpers.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/contextvars.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/datadog.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/internal_pl_utils.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/posix_file_lock.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/proto_bytes_cache.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/pyarrow_utils.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/tracing.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/utils/viztracer_profiling.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/valgrind_launcher.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime.egg-info/SOURCES.txt +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime.egg-info/dependency_links.txt +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime.egg-info/requires.txt +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime.egg-info/top_level.txt +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/setup.cfg +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/setup.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_before_all_hooks_run.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_branch_model_endpoint_config.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_captured_global_function_refs.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_datadog.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_feature_aliases.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_graph_cache.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_internal_pl_utils.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_mat_agg_filter_expressions.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_mat_agg_projection_expressions.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_materialized_feature_view.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_posix_file_lock.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_pyarrow_utils.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_server_context_snapshot.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_sql_max_row_version_lookback_deserialization.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_sql_retry_policy_deserialization.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_sqlalchemy_mysql_keepalive.py +0 -0
- {chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_subprocess_hook_service.py +0 -0
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/convert_chalkpy_underscore.py
RENAMED
|
@@ -3240,6 +3240,7 @@ def underscore_to_online_resolver(
|
|
|
3240
3240
|
doc=str(underscore) if include_definition_strings else None,
|
|
3241
3241
|
input_refs=underscore.inputs(graph),
|
|
3242
3242
|
output_refs=[for_feature],
|
|
3243
|
+
output_relationship=None,
|
|
3243
3244
|
fn=underscore.fn,
|
|
3244
3245
|
environment=None,
|
|
3245
3246
|
is_generator=False,
|
|
@@ -3299,6 +3300,7 @@ def underscore_to_offline_resolver(
|
|
|
3299
3300
|
input_refs=underscore.inputs(graph),
|
|
3300
3301
|
is_generator=False,
|
|
3301
3302
|
output_refs=[for_feature],
|
|
3303
|
+
output_relationship=None,
|
|
3302
3304
|
fn=underscore.fn,
|
|
3303
3305
|
environment=None,
|
|
3304
3306
|
resource_hint="cpu",
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/protograph_deserializer.py
RENAMED
|
@@ -2603,6 +2603,7 @@ class FromProtoConverter:
|
|
|
2603
2603
|
data_sources=[],
|
|
2604
2604
|
is_externally_defined=False,
|
|
2605
2605
|
feature_expressions=feature_expressions,
|
|
2606
|
+
output_relationship=None,
|
|
2606
2607
|
output_row_order=None,
|
|
2607
2608
|
max_batch_size=None,
|
|
2608
2609
|
venv=None,
|
|
@@ -2672,6 +2673,7 @@ class FromProtoConverter:
|
|
|
2672
2673
|
)
|
|
2673
2674
|
|
|
2674
2675
|
outputs: list[TResolverFeatureType] = []
|
|
2676
|
+
output_relationship: HasManyFeatureType | None = None
|
|
2675
2677
|
for o in r.outputs:
|
|
2676
2678
|
if o.HasField("feature"):
|
|
2677
2679
|
feat = FromProtoConverter.convert_feature_reference(o.feature, graph)
|
|
@@ -2680,6 +2682,13 @@ class FromProtoConverter:
|
|
|
2680
2682
|
outputs.append(FromProtoConverter.convert_dataframe(o.df, graph))
|
|
2681
2683
|
else:
|
|
2682
2684
|
raise ValueError("unrecognized resolver output protobuf message: ", o)
|
|
2685
|
+
if o.HasField("relationship"):
|
|
2686
|
+
relationship = FromProtoConverter.get_feature_by_reference(o.relationship, graph)
|
|
2687
|
+
if not isinstance(relationship, HasManyFeatureType):
|
|
2688
|
+
raise TypeError(
|
|
2689
|
+
f"Resolver '{r.fqn}' declares for_relationship({relationship.fqn}), which is not a has-many"
|
|
2690
|
+
)
|
|
2691
|
+
output_relationship = relationship
|
|
2683
2692
|
|
|
2684
2693
|
cron: Duration | CronTab | Cron | None = None
|
|
2685
2694
|
if r.HasField("schedule"):
|
|
@@ -2828,6 +2837,7 @@ class FromProtoConverter:
|
|
|
2828
2837
|
default_args=parsed_inputs.default_args,
|
|
2829
2838
|
graph=graph,
|
|
2830
2839
|
output_refs=outputs,
|
|
2840
|
+
output_relationship=output_relationship,
|
|
2831
2841
|
resource_hint=resource_hint,
|
|
2832
2842
|
environment=tuple(r.environments) if r.environments else None,
|
|
2833
2843
|
tags=tuple(r.tags),
|
|
@@ -235,6 +235,9 @@ class ResolverParsed:
|
|
|
235
235
|
compare=False,
|
|
236
236
|
)
|
|
237
237
|
"""Same idea as the _input_refs, see comment above"""
|
|
238
|
+
output_relationship: HasManyFeatureType | None = dataclasses.field(compare=False, repr=False)
|
|
239
|
+
"""The has-many whose rows the DataFrame output holds, from `DataFrame[for_relationship(...), ...]`.
|
|
240
|
+
The planner uses it to choose between resolvers that fill different has-manys to the same feature class."""
|
|
238
241
|
environment: tuple[str, ...] | None = dataclasses.field(compare=False, repr=False)
|
|
239
242
|
tags: tuple[str, ...] = dataclasses.field(compare=False, repr=False)
|
|
240
243
|
machine_type: MachineType | None = dataclasses.field(compare=False, repr=False)
|
|
@@ -643,6 +643,7 @@ class ParallelResolverInvoker(BoundInvokerProtocol):
|
|
|
643
643
|
is_generator=False,
|
|
644
644
|
resource_hint="cpu" if self._is_cpu_bound else "io",
|
|
645
645
|
output_refs=fn.output_refs,
|
|
646
|
+
output_relationship=None,
|
|
646
647
|
graph=self._graph,
|
|
647
648
|
environment=None,
|
|
648
649
|
tags=tuple(),
|
|
@@ -1304,6 +1304,7 @@ class RegistryConverter:
|
|
|
1304
1304
|
input_refs=parsed_inputs.inputs,
|
|
1305
1305
|
synthetic_inputs=parsed_inputs.synthetic_inputs,
|
|
1306
1306
|
output_refs=output,
|
|
1307
|
+
output_relationship=None,
|
|
1307
1308
|
windowed_pseudofeatures_refs=windowed_pseudofeatures_refs,
|
|
1308
1309
|
mode=mode,
|
|
1309
1310
|
environment=r.environment,
|
|
@@ -1366,6 +1367,7 @@ class RegistryConverter:
|
|
|
1366
1367
|
doc=r.doc,
|
|
1367
1368
|
input_refs=[self.convert_type(i) for i in r.inputs],
|
|
1368
1369
|
output_refs=output,
|
|
1370
|
+
output_relationship=None,
|
|
1369
1371
|
synthetic_inputs=FrozenOrderedSet(),
|
|
1370
1372
|
environment=r.environment,
|
|
1371
1373
|
tags=r.tags or tuple(),
|
|
@@ -1418,6 +1420,24 @@ class RegistryConverter:
|
|
|
1418
1420
|
)
|
|
1419
1421
|
return None
|
|
1420
1422
|
|
|
1423
|
+
def _convert_output_relationship(self, r: Resolver[Any, Any]) -> HasManyFeatureType | None:
|
|
1424
|
+
if r.output is None or len(r.output.features) != 1:
|
|
1425
|
+
return None
|
|
1426
|
+
output = r.output.features[0]
|
|
1427
|
+
if not (isinstance(output, type) and issubclass(output, DataFrame)):
|
|
1428
|
+
return None
|
|
1429
|
+
relationship = cast(Type[DataFrame], output).__relationship__
|
|
1430
|
+
if relationship is None:
|
|
1431
|
+
return None
|
|
1432
|
+
converted = self.convert_type(relationship)
|
|
1433
|
+
if not isinstance(converted, HasManyFeatureType):
|
|
1434
|
+
raise ValueError(
|
|
1435
|
+
f"Resolver '{r.fqn}' declares for_relationship({relationship.root_fqn}) on its output DataFrame, but "
|
|
1436
|
+
+ f"for_relationship must name a has-many feature, and '{relationship.root_fqn}' parsed as "
|
|
1437
|
+
+ f"{type(converted).__name__}."
|
|
1438
|
+
)
|
|
1439
|
+
return converted
|
|
1440
|
+
|
|
1421
1441
|
def _get_inputs(self, r: Resolver[Any, Any]) -> ParsedInputs:
|
|
1422
1442
|
declared_inputs = tuple(self.convert_type(i) for i in r.inputs)
|
|
1423
1443
|
return ParsedInputs(
|
|
@@ -1459,6 +1479,7 @@ class RegistryConverter:
|
|
|
1459
1479
|
input_refs=parsed_inputs.inputs,
|
|
1460
1480
|
synthetic_inputs=parsed_inputs.synthetic_inputs,
|
|
1461
1481
|
output_refs=output,
|
|
1482
|
+
output_relationship=self._convert_output_relationship(r),
|
|
1462
1483
|
resource_hint=r.resource_hint,
|
|
1463
1484
|
graph=self._graph,
|
|
1464
1485
|
is_generator=inspect.isgeneratorfunction(r.fn) or inspect.isasyncgenfunction(r.fn),
|
|
@@ -1530,6 +1551,7 @@ class RegistryConverter:
|
|
|
1530
1551
|
synthetic_inputs=parsed_inputs.synthetic_inputs,
|
|
1531
1552
|
resource_hint=r.resource_hint,
|
|
1532
1553
|
output_refs=output,
|
|
1554
|
+
output_relationship=self._convert_output_relationship(r),
|
|
1533
1555
|
graph=self._graph,
|
|
1534
1556
|
environment=r.environment,
|
|
1535
1557
|
tags=r.tags or tuple(),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/exc/wrapped_resolver_exception.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/_sql_source_pickle_patch.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/dataframe_resolver_correlation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/mat_agg_filter_expression.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/materialized_feature_view.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/graph/underscore_operation_registry.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/incrementalization/incrementalizer.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/batch_result_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/general_bound_invoker.py
RENAMED
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/no_arg_scalar_invoker.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/parse_external_resolver.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/query_execution_parameters.py
RENAMED
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_args_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_input_upload.py
RENAMED
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_output_metadata.py
RENAMED
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/resolver_raw_output_parsing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/invoker/vectorized_hasmany_sampler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/branch_model_endpoint_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/server_context_snapshot.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/server/subprocess_hook_service.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/composed_rewriter.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/filter_injection_site.py
RENAMED
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/filter_query_rewriter.py
RENAMED
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/identity_rewriter.py
RENAMED
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/query_rewriter_helper.py
RENAMED
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/chalkruntime/sql_rewriter/sqlglot_import_lock.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalkruntime-3.43.99 → chalkruntime-3.43.100}/tests/test_sql_retry_policy_deserialization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|