We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33e6412 commit 82c1916Copy full SHA for 82c1916
bigframes/bigquery/_operations/io.py
@@ -16,24 +16,14 @@
16
17
from typing import Mapping, Optional, Union
18
19
-import google.cloud.bigquery
20
import pandas as pd
21
+from bigframes.bigquery._operations.table import _get_table_metadata
22
import bigframes.core.logging.log_adapter as log_adapter
23
import bigframes.core.sql.io
24
import bigframes.session
25
26
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
37
@log_adapter.method_logger(custom_base_name="bigquery_io")
38
def load_data(
39
table_name: str,
0 commit comments