snowpark-checkpoints-validators 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,311 @@
1
+ Metadata-Version: 2.4
2
+ Name: snowpark-checkpoints-validators
3
+ Version: 0.1.0
4
+ Summary: Migration tools for Snowpark
5
+ Project-URL: Bug Tracker, https://github.com/snowflakedb/snowpark-checkpoints/issues
6
+ Project-URL: Source code, https://github.com/snowflakedb/snowpark-checkpoints/
7
+ Author-email: "Snowflake, Inc." <snowflake-python-libraries-dl@snowflake.com>
8
+ License: Apache License, Version 2.0
9
+ License-File: LICENSE
10
+ Keywords: Snowflake,Snowpark,analytics,cloud,database,db
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: Other Environment
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Education
16
+ Classifier: Intended Audience :: Information Technology
17
+ Classifier: Intended Audience :: System Administrators
18
+ Classifier: License :: OSI Approved :: Apache Software License
19
+ Classifier: Operating System :: OS Independent
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: SQL
22
+ Classifier: Topic :: Database
23
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
24
+ Classifier: Topic :: Software Development
25
+ Classifier: Topic :: Software Development :: Libraries
26
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
27
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
+ Requires-Python: <3.12,>=3.9
29
+ Requires-Dist: pandera-report==0.1.2
30
+ Requires-Dist: pandera[io]==0.20.4
31
+ Requires-Dist: pyspark
32
+ Requires-Dist: snowflake-connector-python
33
+ Requires-Dist: snowflake-snowpark-python
34
+ Provides-Extra: development
35
+ Requires-Dist: coverage>=7.6.7; extra == 'development'
36
+ Requires-Dist: deepdiff>=8.0.0; extra == 'development'
37
+ Requires-Dist: hatchling==1.25.0; extra == 'development'
38
+ Requires-Dist: pre-commit>=4.0.1; extra == 'development'
39
+ Requires-Dist: pyarrow>=18.0.0; extra == 'development'
40
+ Requires-Dist: pytest-cov>=6.0.0; extra == 'development'
41
+ Requires-Dist: pytest>=8.3.3; extra == 'development'
42
+ Requires-Dist: setuptools>=70.0.0; extra == 'development'
43
+ Requires-Dist: twine==5.1.1; extra == 'development'
44
+ Description-Content-Type: text/markdown
45
+
46
+ # snowpark-checkpoints-validators
47
+
48
+ ---
49
+ **NOTE**
50
+ This package is on Public Preview.
51
+ ---
52
+
53
+ **snowpark-checkpoints-validators** is a package designed to validate Snowpark DataFrames against predefined schemas and checkpoints. This package ensures data integrity and consistency by performing schema and data validation checks at various stages of a Snowpark pipeline.
54
+
55
+ ## Features
56
+
57
+ - Validate Snowpark DataFrames against predefined Pandera schemas.
58
+ - Perform custom checks and skip specific checks as needed.
59
+ - Generate validation results and log them for further analysis.
60
+ - Support for sampling strategies to validate large datasets efficiently.
61
+ - Integration with PySpark for cross-validation between Snowpark and PySpark DataFrames.
62
+
63
+ ## Functionalities
64
+
65
+ ### Validate DataFrame Schema from File
66
+
67
+ The `validate_dataframe_checkpoint` function validates a Snowpark DataFrame against a checkpoint schema file or dataframe.
68
+
69
+ ```python
70
+ from snowflake.snowpark import DataFrame as SnowparkDataFrame
71
+ from snowflake.snowpark_checkpoints.job_context import SnowparkJobContext
72
+ from snowflake.snowpark_checkpoints.utils.constant import (
73
+ CheckpointMode,
74
+ )
75
+ from snowflake.snowpark_checkpoints.spark_migration import SamplingStrategy
76
+ from typing import Any, Optional
77
+
78
+ # Signature of the function
79
+ def validate_dataframe_checkpoint(
80
+ df: SnowparkDataFrame,
81
+ checkpoint_name: str,
82
+ job_context: Optional[SnowparkJobContext] = None,
83
+ mode: Optional[CheckpointMode] = CheckpointMode.SCHEMA,
84
+ custom_checks: Optional[dict[Any, Any]] = None,
85
+ skip_checks: Optional[dict[Any, Any]] = None,
86
+ sample_frac: Optional[float] = 1.0,
87
+ sample_number: Optional[int] = None,
88
+ sampling_strategy: Optional[SamplingStrategy] = SamplingStrategy.RANDOM_SAMPLE,
89
+ output_path: Optional[str] = None,
90
+ ):
91
+ ...
92
+ ```
93
+
94
+ - `df`: Snowpark dataframe to validate.
95
+ - `checkpoint_name`: Name of the checkpoint schema file or dataframe.
96
+ - `job_context`: Snowpark job context.
97
+ - `mode`: Checkpoint mode (schema or data).
98
+ - `custom_checks`: Custom checks to perform.
99
+ - `skip_checks`: Checks to skip.
100
+ - `sample_frac`: Fraction of the dataframe to sample.
101
+ - `sample_number`: Number of rows to sample.
102
+ - `sampling_strategy`: Sampling strategy to use.
103
+ - `output_path`: Output path for the checkpoint report.
104
+
105
+ ### Usage Example
106
+
107
+ ```python
108
+ from snowflake.snowpark import Session
109
+ from snowflake.snowpark_checkpoints.utils.constant import (
110
+ CheckpointMode,
111
+ )
112
+ from snowflake.snowpark_checkpoints.checkpoint import validate_dataframe_checkpoint
113
+ from snowflake.snowpark_checkpoints.spark_migration import SamplingStrategy
114
+ from snowflake.snowpark_checkpoints.job_context import SnowparkJobContext
115
+ from pyspark.sql import SparkSession
116
+
117
+ session = Session.builder.getOrCreate()
118
+ job_context = SnowparkJobContext(
119
+ session, SparkSession.builder.getOrCreate(), "job_context", True
120
+ )
121
+ df = session.read.format("csv").load("data.csv")
122
+
123
+ validate_dataframe_checkpoint(
124
+ df,
125
+ "schema_checkpoint",
126
+ job_context=job_context,
127
+ mode=CheckpointMode.SCHEMA,
128
+ sample_frac=0.1,
129
+ sampling_strategy=SamplingStrategy.RANDOM_SAMPLE
130
+ )
131
+ ```
132
+
133
+ ### Check with Spark Decorator
134
+
135
+ The `check_with_spark` decorator converts any Snowpark dataframe arguments to a function, samples them, and converts them to PySpark dataframe. It then executes a provided Spark function and compares the outputs between the two implementations.
136
+
137
+ ```python
138
+ from snowflake.snowpark_checkpoints.job_context import SnowparkJobContext
139
+ from snowflake.snowpark_checkpoints.spark_migration import SamplingStrategy
140
+ from typing import Callable, Optional, TypeVar
141
+
142
+ fn = TypeVar("F", bound=Callable)
143
+
144
+ # Signature of the decorator
145
+ def check_with_spark(
146
+ job_context: Optional[SnowparkJobContext],
147
+ spark_function: fn,
148
+ checkpoint_name: str,
149
+ sample_number: Optional[int] = 100,
150
+ sampling_strategy: Optional[SamplingStrategy] = SamplingStrategy.RANDOM_SAMPLE,
151
+ output_path: Optional[str] = None,
152
+ ) -> Callable[[fn], fn]:
153
+ ...
154
+ ```
155
+
156
+ - `job_context`: Snowpark job context.
157
+ - `spark_function`: PySpark function to execute.
158
+ - `checkpoint_name`: Name of the check.
159
+ - `sample_number`: Number of rows to sample.
160
+ - `sampling_strategy`: Sampling strategy to use.
161
+ - `output_path`: Output path for the checkpoint report.
162
+
163
+ ### Usage Example
164
+
165
+ ```python
166
+ from snowflake.snowpark import Session
167
+ from snowflake.snowpark import DataFrame as SnowparkDataFrame
168
+ from snowflake.snowpark_checkpoints.spark_migration import check_with_spark
169
+ from snowflake.snowpark_checkpoints.job_context import SnowparkJobContext
170
+ from pyspark.sql import DataFrame as SparkDataFrame, SparkSession
171
+
172
+ session = Session.builder.getOrCreate()
173
+ job_context = SnowparkJobContext(
174
+ session, SparkSession.builder.getOrCreate(), "job_context", True
175
+ )
176
+
177
+ def my_spark_scalar_fn(df: SparkDataFrame):
178
+ return df.count()
179
+
180
+ @check_with_spark(
181
+ job_context=job_context,
182
+ spark_function=my_spark_scalar_fn,
183
+ checkpoint_name="count_checkpoint",
184
+ )
185
+ def my_snowpark_scalar_fn(df: SnowparkDataFrame):
186
+ return df.count()
187
+
188
+ df = job_context.snowpark_session.create_dataframe(
189
+ [[1, 2], [3, 4]], schema=["a", "b"]
190
+ )
191
+ count = my_snowpark_scalar_fn(df)
192
+ ```
193
+
194
+ ### Pandera Snowpark Decorators
195
+
196
+ The decorators `@check_input_schema` and `@check_output_schema` allow for sampled schema validation of Snowpark dataframes in the input arguments or in the return value.
197
+
198
+ ```python
199
+ from snowflake.snowpark_checkpoints.spark_migration import SamplingStrategy
200
+ from snowflake.snowpark_checkpoints.job_context import SnowparkJobContext
201
+ from pandera import DataFrameSchema
202
+ from typing import Optional
203
+
204
+ # Signature of the decorator
205
+ def check_input_schema(
206
+ pandera_schema: DataFrameSchema,
207
+ checkpoint_name: str,
208
+ sample_frac: Optional[float] = 1.0,
209
+ sample_number: Optional[int] = None,
210
+ sampling_strategy: Optional[SamplingStrategy] = SamplingStrategy.RANDOM_SAMPLE,
211
+ job_context: Optional[SnowparkJobContext] = None,
212
+ output_path: Optional[str] = None,
213
+ ):
214
+ ...
215
+
216
+ # Signature of the decorator
217
+ def check_output_schema(
218
+ pandera_schema: DataFrameSchema,
219
+ checkpoint_name: str,
220
+ sample_frac: Optional[float] = 1.0,
221
+ sample_number: Optional[int] = None,
222
+ sampling_strategy: Optional[SamplingStrategy] = SamplingStrategy.RANDOM_SAMPLE,
223
+ job_context: Optional[SnowparkJobContext] = None,
224
+ output_path: Optional[str] = None,
225
+ ):
226
+ ...
227
+ ```
228
+
229
+ - `pandera_schema`: Pandera schema to validate.
230
+ - `checkpoint_name`: Name of the checkpoint schema file or DataFrame.
231
+ - `sample_frac`: Fraction of the DataFrame to sample.
232
+ - `sample_number`: Number of rows to sample.
233
+ - `sampling_strategy`: Sampling strategy to use.
234
+ - `job_context`: Snowpark job context.
235
+ - `output_path`: Output path for the checkpoint report.
236
+
237
+ ### Usage Example
238
+
239
+ #### Check Input Schema Example
240
+ ```python
241
+ from pandas import DataFrame as PandasDataFrame
242
+ from pandera import DataFrameSchema, Column, Check
243
+ from snowflake.snowpark import Session
244
+ from snowflake.snowpark import DataFrame as SnowparkDataFrame
245
+ from snowflake.snowpark_checkpoints.checkpoint import check_input_schema
246
+ from numpy import int8
247
+
248
+ df = PandasDataFrame(
249
+ {
250
+ "COLUMN1": [1, 4, 0, 10, 9],
251
+ "COLUMN2": [-1.3, -1.4, -2.9, -10.1, -20.4],
252
+ }
253
+ )
254
+
255
+ in_schema = DataFrameSchema(
256
+ {
257
+ "COLUMN1": Column(int8, Check(lambda x: 0 <= x <= 10, element_wise=True)),
258
+ "COLUMN2": Column(float, Check(lambda x: x < -1.2, element_wise=True)),
259
+ }
260
+ )
261
+
262
+ @check_input_schema(in_schema, "input_schema_checkpoint")
263
+ def preprocessor(dataframe: SnowparkDataFrame):
264
+ dataframe = dataframe.withColumn(
265
+ "COLUMN3", dataframe["COLUMN1"] + dataframe["COLUMN2"]
266
+ )
267
+ return dataframe
268
+
269
+ session = Session.builder.getOrCreate()
270
+ sp_dataframe = session.create_dataframe(df)
271
+
272
+ preprocessed_dataframe = preprocessor(sp_dataframe)
273
+ ```
274
+
275
+ #### Check Input Schema Example
276
+ ```python
277
+ from pandas import DataFrame as PandasDataFrame
278
+ from pandera import DataFrameSchema, Column, Check
279
+ from snowflake.snowpark import Session
280
+ from snowflake.snowpark import DataFrame as SnowparkDataFrame
281
+ from snowflake.snowpark_checkpoints.checkpoint import check_output_schema
282
+ from numpy import int8
283
+
284
+ df = PandasDataFrame(
285
+ {
286
+ "COLUMN1": [1, 4, 0, 10, 9],
287
+ "COLUMN2": [-1.3, -1.4, -2.9, -10.1, -20.4],
288
+ }
289
+ )
290
+
291
+ out_schema = DataFrameSchema(
292
+ {
293
+ "COLUMN1": Column(int8, Check.between(0, 10, include_max=True, include_min=True)),
294
+ "COLUMN2": Column(float, Check.less_than_or_equal_to(-1.2)),
295
+ "COLUMN3": Column(float, Check.less_than(10)),
296
+ }
297
+ )
298
+
299
+ @check_output_schema(out_schema, "output_schema_checkpoint")
300
+ def preprocessor(dataframe: SnowparkDataFrame):
301
+ return dataframe.with_column(
302
+ "COLUMN3", dataframe["COLUMN1"] + dataframe["COLUMN2"]
303
+ )
304
+
305
+ session = Session.builder.getOrCreate()
306
+ sp_dataframe = session.create_dataframe(df)
307
+
308
+ preprocessed_dataframe = preprocessor(sp_dataframe)
309
+ ```
310
+
311
+ ------
@@ -0,0 +1,4 @@
1
+ snowpark_checkpoints_validators-0.1.0.dist-info/METADATA,sha256=T2QY80k5d5rnFZJGyksDORAa8srRt-rvzJMyIQIGlI0,10996
2
+ snowpark_checkpoints_validators-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
3
+ snowpark_checkpoints_validators-0.1.0.dist-info/licenses/LICENSE,sha256=pmjhbh6uVhV5MBXOlou_UZgFP7CYVQITkCCdvfcS5lY,11340
4
+ snowpark_checkpoints_validators-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
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.