Skip to content

Commit 82c1916

Browse files
committed
refactor
1 parent 33e6412 commit 82c1916

File tree

1 file changed

+1
-11
lines changed
  • bigframes/bigquery/_operations

1 file changed

+1
-11
lines changed

bigframes/bigquery/_operations/io.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,14 @@
1616

1717
from typing import Mapping, Optional, Union
1818

19-
import google.cloud.bigquery
2019
import pandas as pd
2120

21+
from bigframes.bigquery._operations.table import _get_table_metadata
2222
import bigframes.core.logging.log_adapter as log_adapter
2323
import bigframes.core.sql.io
2424
import bigframes.session
2525

2626

27-
def _get_table_metadata(
28-
*,
29-
bqclient: google.cloud.bigquery.Client,
30-
table_name: str,
31-
) -> pd.Series:
32-
table_metadata = bqclient.get_table(table_name)
33-
table_dict = table_metadata.to_api_repr()
34-
return pd.Series(table_dict)
35-
36-
3727
@log_adapter.method_logger(custom_base_name="bigquery_io")
3828
def load_data(
3929
table_name: str,

0 commit comments

Comments
 (0)