Skip to content

Commit 57bc9ab

Browse files
authored
refactor: move remote_function logic to make a space for other types (#322)
1 parent f3cd2f4 commit 57bc9ab

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

bigframes/functions/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
File renamed without changes.

bigframes/session/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
import bigframes.core.utils as utils
7575
import bigframes.dataframe as dataframe
7676
import bigframes.formatting_helpers as formatting_helpers
77-
from bigframes.remote_function import read_gbq_function as bigframes_rgf
78-
from bigframes.remote_function import remote_function as bigframes_rf
77+
from bigframes.functions.remote_function import read_gbq_function as bigframes_rgf
78+
from bigframes.functions.remote_function import remote_function as bigframes_rf
7979
import bigframes.session._io.bigquery as bigframes_io
8080
import bigframes.session.clients
8181
import bigframes.version

tests/system/large/test_remote_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import test_utils.prefixer
2929

3030
import bigframes
31-
from bigframes.remote_function import (
31+
from bigframes.functions.remote_function import (
3232
get_cloud_function_name,
3333
get_remote_function_locations,
3434
)

tests/system/small/test_remote_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import pytest
1818

1919
import bigframes
20-
from bigframes import remote_function as rf
20+
from bigframes.functions import remote_function as rf
2121
from tests.system.utils import assert_pandas_df_equal
2222

2323

tests/unit/test_dtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def test_literal_to_ibis_scalar_throws_on_incompatible_literal():
241241
def test_remote_function_io_types_are_supported_bigframes_types():
242242
from ibis.expr.datatypes.core import dtype as python_type_to_bigquery_type
243243

244-
from bigframes.remote_function import (
244+
from bigframes.functions.remote_function import (
245245
SUPPORTED_IO_PYTHON_TYPES as rf_supported_io_types,
246246
)
247247

tests/unit/test_remote_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ibis.backends.bigquery import datatypes as bq_types
1616
from ibis.expr import datatypes as ibis_types
1717

18-
from bigframes import remote_function as rf
18+
from bigframes.functions import remote_function as rf
1919

2020

2121
def test_supported_types_correspond():

0 commit comments

Comments
 (0)