Skip to content

Commit

Permalink
Add licence info; re-order imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Chong Gao committed Dec 5, 2023
1 parent 4c6133e commit 92741c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion integration_tests/src/main/python/time_zone_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# get from Java:
# ZoneId.getAvailableZoneIds
# id.getRules.isFixedOffset || id.getRules.getTransitionRules.isEmpty
Expand Down Expand Up @@ -613,4 +627,4 @@
"Europe/Monaco",
]

all_valid_time_zones = non_dst_time_zones + dst_time_zones
all_valid_time_zones = non_dst_time_zones + dst_time_zones
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import java.time.ZoneId

import scala.collection.mutable

import com.nvidia.spark.rapids.shims.{DistributionUtil, SparkShimImpl}
import com.nvidia.spark.rapids.jni.GpuTimeZoneDB
import com.nvidia.spark.rapids.shims.{DistributionUtil, SparkShimImpl}

import org.apache.spark.sql.catalyst.expressions.{Attribute, AttributeReference, BinaryExpression, Cast, ComplexTypeMergingExpression, Expression, QuaternaryExpression, String2TrimExpression, TernaryExpression, TimeZoneAwareExpression, UnaryExpression, UTCTimestamp, WindowExpression, WindowFunction}
import org.apache.spark.sql.catalyst.expressions.aggregate.{AggregateExpression, AggregateFunction, ImperativeAggregate, TypedImperativeAggregate}
Expand Down

0 comments on commit 92741c6

Please sign in to comment.