snowpark-checkpoints-collectors 0.1.0rc3__tar.gz → 0.1.2__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.
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/.gitignore +1 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/LICENSE +0 -25
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/PKG-INFO +4 -6
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/README.md +2 -4
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/pyproject.toml +12 -4
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/__init__.py +22 -0
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/__version__.py +16 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/collection_common.py +14 -3
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/collection_result/model/__init__.py +24 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/collection_result/model/collection_point_result.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/collection_result/model/collection_point_result_manager.py +14 -3
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/column_collection/__init__.py +22 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/column_collector_manager.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/__init__.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/array_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/binary_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/boolean_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/column_collector_base.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/date_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/day_time_interval_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/decimal_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/empty_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/map_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/null_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/numeric_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/string_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/struct_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/timestamp_column_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_collection/model/timestamp_ntz_column_collector.py +14 -3
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/column_pandera_checks/__init__.py +20 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/column_pandera_checks/pandera_column_checks_manager.py +14 -3
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/singleton.py +23 -0
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/snow_connection_model/__init__.py +20 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/snow_connection_model/snow_connection.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/summary_stats_collector.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/utils/checkpoint_name_utils.py +16 -13
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/utils/extra_config.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/src/snowflake/snowpark_checkpoints_collector/utils/file_utils.py +14 -3
- snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/utils/telemetry.py +889 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/.coveragerc +1 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/telemetry_compare_utils.py +14 -14
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_2.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_2_expected/test_collect_checkpoint_mode_2_parquet_directory _telemetry.json +3 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_2_expected/test_collect_checkpoint_mode_2_telemetry.json +3 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_2_expected/test_collect_empty_dataframe_with_schema_telemetry.json +3 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_2_expected/test_collect_invalid_mode_telemetry.json +3 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_2_expected/test_generate_parquet_for_spark_df_telemetry.json +3 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_2_expected/test_spark_df_mode_dataframe_telemetry.json +3 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collection_result_file.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_snow_connection_int.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_column_collection.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_extra_config.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_file_utils.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_snow_connection.py +14 -3
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_summary_stats_collector.py +14 -3
- snowpark_checkpoints_collectors-0.1.0rc3/src/snowflake/snowpark_checkpoints_collector/__init__.py +0 -11
- snowpark_checkpoints_collectors-0.1.0rc3/src/snowflake/snowpark_checkpoints_collector/collection_result/model/__init__.py +0 -13
- snowpark_checkpoints_collectors-0.1.0rc3/src/snowflake/snowpark_checkpoints_collector/column_collection/__init__.py +0 -11
- snowpark_checkpoints_collectors-0.1.0rc3/src/snowflake/snowpark_checkpoints_collector/column_pandera_checks/__init__.py +0 -9
- snowpark_checkpoints_collectors-0.1.0rc3/src/snowflake/snowpark_checkpoints_collector/singleton.py +0 -12
- snowpark_checkpoints_collectors-0.1.0rc3/src/snowflake/snowpark_checkpoints_collector/snow_connection_model/__init__.py +0 -9
- snowpark_checkpoints_collectors-0.1.0rc3/src/snowflake/snowpark_checkpoints_collector/utils/telemetry.py +0 -1
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/CHANGELOG.md +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/snowpark-testdf-schema.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_checkpoint_name.py +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_dataframe_all_column_types_with_null_values.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_dataframe_all_column_types_with_null_values_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_dataframe_with_unsupported_pandera_column_type.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_dataframe_with_unsupported_pandera_column_type_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_df_with_null_values.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_df_with_null_values_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_df_with_only_null_values.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_df_with_only_null_values_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_empty_df_with_object_column.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_empty_df_with_object_column_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_empty_df_with_schema.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_empty_df_with_schema_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_full_df.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_full_df_all_column_type.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_full_df_all_column_type_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/integ/test_collect_df_mode_1_expected/test_full_df_telemetry.json +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_checkpoint_name_utils.py +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_collection_point_result.py +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_collection_point_result_manager.py +0 -0
- {snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/test/unit/test_pandera_column_check_manager.py +0 -0
@@ -175,28 +175,3 @@
|
|
175
175
|
of your accepting any such warranty or additional liability.
|
176
176
|
|
177
177
|
END OF TERMS AND CONDITIONS
|
178
|
-
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
180
|
-
|
181
|
-
To apply the Apache License to your work, attach the following
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
-
replaced with your own identifying information. (Don't include
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
185
|
-
comment syntax for the file format. We also recommend that a
|
186
|
-
file or class name and description of purpose be included on the
|
187
|
-
same "printed page" as the copyright notice for easier
|
188
|
-
identification within third-party archives.
|
189
|
-
|
190
|
-
Copyright 2025 Snowflake
|
191
|
-
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
-
you may not use this file except in compliance with the License.
|
194
|
-
You may obtain a copy of the License at
|
195
|
-
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
-
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
-
See the License for the specific language governing permissions and
|
202
|
-
limitations under the License.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: snowpark-checkpoints-collectors
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.2
|
4
4
|
Summary: Snowpark column and table statistics collection
|
5
5
|
Project-URL: Bug Tracker, https://github.com/snowflakedb/snowpark-checkpoints/issues
|
6
6
|
Project-URL: Source code, https://github.com/snowflakedb/snowpark-checkpoints/
|
@@ -29,7 +29,7 @@ Requires-Python: <3.12,>=3.9
|
|
29
29
|
Requires-Dist: pandera[io]==0.20.4
|
30
30
|
Requires-Dist: pyspark
|
31
31
|
Requires-Dist: snowflake-connector-python
|
32
|
-
Requires-Dist: snowflake-snowpark-python
|
32
|
+
Requires-Dist: snowflake-snowpark-python==1.26.0
|
33
33
|
Provides-Extra: development
|
34
34
|
Requires-Dist: coverage>=7.6.7; extra == 'development'
|
35
35
|
Requires-Dist: deepdiff>=8.0.0; extra == 'development'
|
@@ -44,11 +44,9 @@ Description-Content-Type: text/markdown
|
|
44
44
|
|
45
45
|
# snowpark-checkpoints-collectors
|
46
46
|
|
47
|
-
---
|
48
|
-
**NOTE**
|
49
|
-
|
50
|
-
This package is on Private Preview.
|
51
47
|
|
48
|
+
---
|
49
|
+
##### This package is on Public Preview.
|
52
50
|
---
|
53
51
|
|
54
52
|
**snowpark-checkpoints-collector** package offers a function for extracting information from PySpark dataframes. We can then use that data to validate against the converted Snowpark dataframes to ensure that behavioral equivalence has been achieved.
|
{snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/README.md
RENAMED
@@ -1,10 +1,8 @@
|
|
1
1
|
# snowpark-checkpoints-collectors
|
2
2
|
|
3
|
-
---
|
4
|
-
**NOTE**
|
5
|
-
|
6
|
-
This package is on Private Preview.
|
7
3
|
|
4
|
+
---
|
5
|
+
##### This package is on Public Preview.
|
8
6
|
---
|
9
7
|
|
10
8
|
**snowpark-checkpoints-collector** package offers a function for extracting information from PySpark dataframes. We can then use that data to validate against the converted Snowpark dataframes to ensure that behavioral equivalence has been achieved.
|
{snowpark_checkpoints_collectors-0.1.0rc3 → snowpark_checkpoints_collectors-0.1.2}/pyproject.toml
RENAMED
@@ -26,7 +26,7 @@ classifiers = [
|
|
26
26
|
"Topic :: Scientific/Engineering :: Information Analysis",
|
27
27
|
]
|
28
28
|
dependencies = [
|
29
|
-
"snowflake-snowpark-python",
|
29
|
+
"snowflake-snowpark-python==1.26.0",
|
30
30
|
"snowflake-connector-python",
|
31
31
|
"pyspark",
|
32
32
|
"pandera[io]==0.20.4",
|
@@ -63,8 +63,9 @@ development = [
|
|
63
63
|
"Bug Tracker" = "https://github.com/snowflakedb/snowpark-checkpoints/issues"
|
64
64
|
"Source code" = "https://github.com/snowflakedb/snowpark-checkpoints/"
|
65
65
|
|
66
|
+
|
66
67
|
[tool.hatch.version]
|
67
|
-
path = "__version__.py"
|
68
|
+
path = "src/snowflake/snowpark_checkpoints_collector/__version__.py"
|
68
69
|
pattern = '^__version__ = "(?P<version>.*)"'
|
69
70
|
source = "regex"
|
70
71
|
|
@@ -76,15 +77,22 @@ where = ["src/"]
|
|
76
77
|
dev-mode-dirs = ['src']
|
77
78
|
directory = 'snowpark-checkpoints-collectors'
|
78
79
|
|
80
|
+
[[tool.hatch.sources]]
|
81
|
+
dir = "src/snowflake/snowpark_checkpoints_collector"
|
82
|
+
name = "snowpark-checkpoints-collectors"
|
83
|
+
type = "package"
|
84
|
+
|
79
85
|
[tool.hatch.build.targets.wheel]
|
80
86
|
directory = "dist"
|
81
|
-
packages = [
|
87
|
+
packages = [
|
88
|
+
"src/snowflake",
|
89
|
+
]
|
82
90
|
|
83
91
|
[tool.hatch.build.targets.sdist]
|
84
92
|
directory = "dist"
|
85
93
|
exclude = ["/.github", "/.idea"]
|
86
94
|
include = [
|
87
|
-
'src
|
95
|
+
'src/**',
|
88
96
|
'README.md',
|
89
97
|
'LICENSE',
|
90
98
|
'test/',
|
snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/__init__.py
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
__all__ = ["collect_dataframe_checkpoint", "CheckpointMode"]
|
17
|
+
|
18
|
+
from snowflake.snowpark_checkpoints_collector.summary_stats_collector import (
|
19
|
+
collect_dataframe_checkpoint,
|
20
|
+
)
|
21
|
+
|
22
|
+
from snowflake.snowpark_checkpoints_collector.collection_common import CheckpointMode
|
snowpark_checkpoints_collectors-0.1.2/src/snowflake/snowpark_checkpoints_collector/__version__.py
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
__version__ = "0.1.2"
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
import locale
|
6
17
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
__all__ = ["CollectionPointResult", "CollectionResult", "CollectionPointResultManager"]
|
17
|
+
|
18
|
+
from snowflake.snowpark_checkpoints_collector.collection_result.model.collection_point_result import (
|
19
|
+
CollectionPointResult,
|
20
|
+
CollectionResult,
|
21
|
+
)
|
22
|
+
from snowflake.snowpark_checkpoints_collector.collection_result.model.collection_point_result_manager import (
|
23
|
+
CollectionPointResultManager,
|
24
|
+
)
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from datetime import datetime
|
5
16
|
from enum import Enum
|
6
17
|
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
import json
|
5
16
|
|
6
17
|
from typing import Optional
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
__all__ = [
|
17
|
+
"ColumnCollectorManager",
|
18
|
+
]
|
19
|
+
|
20
|
+
from snowflake.snowpark_checkpoints_collector.column_collection.column_collector_manager import (
|
21
|
+
ColumnCollectorManager,
|
22
|
+
)
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from pyspark.sql import DataFrame as SparkDataFrame
|
5
16
|
from pyspark.sql.types import StructField
|
6
17
|
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
__all__ = [
|
6
17
|
"ArrayColumnCollector",
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from statistics import mean
|
5
16
|
|
6
17
|
from pyspark.sql import DataFrame as SparkDataFrame
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from statistics import mean
|
5
16
|
|
6
17
|
from pyspark.sql import DataFrame as SparkDataFrame
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
from pyspark.sql import DataFrame as SparkDataFrame
|
6
17
|
from pyspark.sql.types import StructField
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
from abc import ABC, abstractmethod
|
6
17
|
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from pyspark.sql import DataFrame as SparkDataFrame
|
5
16
|
from pyspark.sql.functions import col as spark_col
|
6
17
|
from pyspark.sql.functions import max as spark_max
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
from pyspark.sql import DataFrame as SparkDataFrame
|
6
17
|
from pyspark.sql.functions import col as spark_col
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
from pyspark.sql import DataFrame as SparkDataFrame
|
6
17
|
from pyspark.sql.functions import col as spark_col
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
from pyspark.sql import DataFrame as SparkDataFrame
|
6
17
|
from pyspark.sql.types import StructField
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from statistics import mean
|
5
16
|
|
6
17
|
from pyspark.sql import DataFrame as SparkDataFrame
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from pyspark.sql import DataFrame as SparkDataFrame
|
5
16
|
from pyspark.sql.types import StructField
|
6
17
|
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
from pyspark.sql import DataFrame as SparkDataFrame
|
6
17
|
from pyspark.sql.functions import col as spark_col
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from pyspark.sql import DataFrame as SparkDataFrame
|
5
16
|
from pyspark.sql.functions import col as spark_col
|
6
17
|
from pyspark.sql.functions import length as spark_length
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
from pyspark.sql import DataFrame as SparkDataFrame
|
5
16
|
from pyspark.sql.types import StructField
|
6
17
|
|
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
3
|
+
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
4
15
|
|
5
16
|
from pyspark.sql import DataFrame as SparkDataFrame
|
6
17
|
from pyspark.sql.functions import col as spark_col
|