Skip to content

Commit

Permalink
Merge branch 'main' into lmukhopadhyay-SNOW-1874368-skip-cortex-doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-lmukhopadhyay committed Jan 14, 2025
2 parents 2ea3bbd + 80d722e commit 37b5993
Show file tree
Hide file tree
Showing 692 changed files with 987 additions and 724 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
- Updated integration testing for `session.lineage.trace` to exclude deleted objects
- Added documentation for `DataFrame.map`.
- Improve performance of `DataFrame.apply` by mapping numpy functions to snowpark functions if possible.
- Added documentation on the extent of Snowpark pandas interoperability with scikit-learn
- Added documentation on the extent of Snowpark pandas interoperability with scikit-learn.
- Infer return type of functions in `Series.map`, `Series.apply` and `DataFrame.map` if type-hint is not provided.
- Added `call_count` to telemetry that counts method calls including interchange protocol calls.

## 1.26.0 (2024-12-05)

Expand Down
2 changes: 1 addition & 1 deletion license_header.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.

2 changes: 1 addition & 1 deletion src/snowflake/snowpark/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

"""
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/analyzer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/analyzer/analyzer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import uuid
from collections import Counter, defaultdict
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import math
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import AbstractSet, List, Optional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import Dict, List, Optional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import binascii
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/analyzer/expression.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import copy
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/analyzer/grouping_set.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import AbstractSet, Dict, List, Optional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
from enum import Enum
from dataclasses import dataclass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from collections import Counter
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/analyzer/schema_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import time
import traceback
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import copy
import re
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import AbstractSet, List, Optional, Type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import Dict, Iterable, List, Optional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import AbstractSet, Dict, List, Optional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import Dict, Iterable, List, Optional, Union
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import AbstractSet, Dict, List, Optional
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/ast/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/ast/batch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import base64
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/ast/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import ast
import base64
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/code_generation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import ast
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/compiler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/compiler/cte_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import hashlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import logging
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/compiler/plan_compiler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import copy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import copy
from typing import DefaultDict, Dict, Iterable, List, NamedTuple, Optional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from collections import defaultdict
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from enum import Enum
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/compiler/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import copy
import tempfile
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/error_message.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import Optional
Expand Down
5 changes: 1 addition & 4 deletions src/snowflake/snowpark/_internal/open_telemetry.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
#

import inspect
import os.path
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/packaging_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
# The code in this file is largely a copy of https://github.com/Snowflake-Labs/snowcli/blob/main/src/snowcli/utils.py
import glob
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import List, Optional
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/server_connection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import functools
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/telemetry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import functools
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import logging
from threading import RLock
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/type_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

# Code in this file may constitute partial or total reimplementation, or modification of
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/udf_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import collections.abc
import inspect
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import array
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/async_job.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import time
from enum import Enum
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/catalog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import re
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/column.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import sys
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/context.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

"""Context module for Snowpark."""
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/dataframe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import copy
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/dataframe_analytics_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

from typing import Callable, Dict, List, Tuple, Union
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/dataframe_na_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import copy
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/dataframe_reader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import sys
Expand Down
Loading

0 comments on commit 37b5993

Please sign in to comment.