Skip to content

Commit

Permalink
SNOW-761991 Update license header to 2023 (snowflakedb#728)
Browse files Browse the repository at this point in the history
Description

It's 2023 you know :)

Testing

N/A
  • Loading branch information
sfc-gh-sfan authored Mar 17, 2023
1 parent fd44452 commit 491599a
Show file tree
Hide file tree
Showing 140 changed files with 242 additions and 141 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2012-2022 Snowflake Computing, Inc.
Copyright (c) 2012-2023 Snowflake Computing, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
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-2022 Snowflake Computing Inc. All rights reserved.
Copyright (c) 2012-2023 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-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 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-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 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-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/analyzer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from collections import Counter
from typing import Dict, Union

Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/analyzer_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import re
import typing
from typing import Any, Dict, List, Optional, Tuple, Union
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Optional, Set

from snowflake.snowpark._internal.analyzer.expression import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import List, Optional

from snowflake.snowpark._internal.analyzer.expression import Expression
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/datatype_mapper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import binascii
import json
import math
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/expression.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import copy
import uuid
from typing import TYPE_CHECKING, Any, List, Optional, Set, Tuple
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/grouping_set.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import List, Optional, Set

from snowflake.snowpark._internal.analyzer.expression import (
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/schema_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import List

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

from abc import ABC, abstractmethod
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/snowflake_plan.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import re
import sys
import uuid
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from enum import Enum
from typing import Any, Dict, List, Optional

Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/sort_expression.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Optional, Set

from snowflake.snowpark._internal.analyzer.expression import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 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,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Dict, List, Optional

from snowflake.snowpark._internal.analyzer.expression import Expression
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Optional, Set

from snowflake.snowpark._internal.analyzer.expression import (
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/analyzer/unary_plan_node.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import List, Optional

from snowflake.snowpark._internal.analyzer.expression import Expression, NamedExpression
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import List, Optional, Set

from snowflake.snowpark._internal.analyzer.expression import (
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-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import ast
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/error_message.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from snowflake.connector import OperationalError, ProgrammingError
from snowflake.snowpark.exceptions import (
SnowparkColumnException,
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/server_connection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import functools
import os
import sys
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/telemetry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import functools
from enum import Enum, unique
from typing import Any, Dict, List, Optional
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/type_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

# Code in this file may constitute partial or total reimplementation, or modification of
# existing code originally distributed by the Apache Software Foundation as part of the
# Apache Spark project, under the Apache License, Version 2.0.
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-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import io
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/_internal/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import array
import contextlib
import datetime
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/async_job.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from enum import Enum
from logging import getLogger
from typing import Iterator, List, Literal, Optional, Union
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/column.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Optional, Union

import snowflake.snowpark
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/context.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

"""Context module for Snowpark."""
import snowflake.snowpark

Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/dataframe.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import copy
import itertools
import re
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/dataframe_na_functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import copy
from logging import getLogger
from typing import Dict, Optional, Union
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-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Any, Dict, List, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/dataframe_stat_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from functools import reduce
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/dataframe_writer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Dict, List, Literal, Optional, Union, overload

import snowflake.snowpark # for forward references of type hints
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

"""This package contains all Snowpark client-side exceptions."""
import logging
from typing import Optional
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/file_operation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import gzip
import os
import sys
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/files.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

"""SnowflakeFile for UDFs in Snowpark."""
from __future__ import annotations

Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

"""
Provides utility and SQL functions that generate :class:`~snowflake.snowpark.Column` expressions that you can pass to :class:`~snowflake.snowpark.DataFrame` transformation methods.
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/query_history.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import List, NamedTuple

import snowflake.snowpark
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/relational_grouped_dataframe.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import re
from typing import Callable, Dict, List, Tuple, Union

Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/row.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

from typing import Any, Dict, Union

# Python 3.8 needs to use typing.Iterable because collections.abc.Iterable is not subscriptable
Expand Down
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/session.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#

import datetime
import decimal
import json
Expand Down
Loading

0 comments on commit 491599a

Please sign in to comment.