|
34 | 34 |
|
35 | 35 | __version__ = bigquery_version.__version__ |
36 | 36 |
|
37 | | -from google.cloud.bigquery.client import Client |
38 | | -from google.cloud.bigquery.dataset import AccessEntry |
39 | | -from google.cloud.bigquery.dataset import Dataset |
40 | | -from google.cloud.bigquery.dataset import DatasetReference |
41 | 37 | from google.cloud.bigquery import enums |
42 | | -from google.cloud.bigquery.enums import AutoRowIDs |
43 | | -from google.cloud.bigquery.enums import DecimalTargetType |
44 | | -from google.cloud.bigquery.enums import KeyResultStatementKind |
45 | | -from google.cloud.bigquery.enums import SqlTypeNames |
46 | | -from google.cloud.bigquery.enums import StandardSqlTypeNames |
47 | | -from google.cloud.bigquery.exceptions import LegacyBigQueryStorageError |
48 | | -from google.cloud.bigquery.exceptions import LegacyPandasError |
49 | | -from google.cloud.bigquery.exceptions import LegacyPyarrowError |
50 | | -from google.cloud.bigquery.external_config import ExternalConfig |
51 | | -from google.cloud.bigquery.external_config import BigtableOptions |
52 | | -from google.cloud.bigquery.external_config import BigtableColumnFamily |
53 | | -from google.cloud.bigquery.external_config import BigtableColumn |
54 | | -from google.cloud.bigquery.external_config import CSVOptions |
55 | | -from google.cloud.bigquery.external_config import GoogleSheetsOptions |
56 | | -from google.cloud.bigquery.external_config import ExternalSourceFormat |
57 | | -from google.cloud.bigquery.external_config import HivePartitioningOptions |
58 | | -from google.cloud.bigquery.format_options import AvroOptions |
59 | | -from google.cloud.bigquery.format_options import ParquetOptions |
| 38 | +from google.cloud.bigquery.client import Client |
| 39 | +from google.cloud.bigquery.dataset import AccessEntry, Dataset, DatasetReference |
| 40 | +from google.cloud.bigquery.encryption_configuration import EncryptionConfiguration |
| 41 | +from google.cloud.bigquery.enums import ( |
| 42 | + AutoRowIDs, |
| 43 | + DecimalTargetType, |
| 44 | + KeyResultStatementKind, |
| 45 | + SqlTypeNames, |
| 46 | + StandardSqlTypeNames, |
| 47 | +) |
| 48 | +from google.cloud.bigquery.exceptions import ( |
| 49 | + LegacyBigQueryStorageError, |
| 50 | + LegacyPandasError, |
| 51 | + LegacyPyarrowError, |
| 52 | +) |
| 53 | +from google.cloud.bigquery.external_config import ( |
| 54 | + BigtableColumn, |
| 55 | + BigtableColumnFamily, |
| 56 | + BigtableOptions, |
| 57 | + CSVOptions, |
| 58 | + ExternalConfig, |
| 59 | + ExternalSourceFormat, |
| 60 | + GoogleSheetsOptions, |
| 61 | + HivePartitioningOptions, |
| 62 | +) |
| 63 | +from google.cloud.bigquery.format_options import AvroOptions, ParquetOptions |
| 64 | +from google.cloud.bigquery.job import ( |
| 65 | + Compression, |
| 66 | + CopyJob, |
| 67 | + CopyJobConfig, |
| 68 | + CreateDisposition, |
| 69 | + DestinationFormat, |
| 70 | + DmlStats, |
| 71 | + Encoding, |
| 72 | + ExtractJob, |
| 73 | + ExtractJobConfig, |
| 74 | + LoadJob, |
| 75 | + LoadJobConfig, |
| 76 | + OperationType, |
| 77 | + QueryJob, |
| 78 | + QueryJobConfig, |
| 79 | + QueryPriority, |
| 80 | + SchemaUpdateOption, |
| 81 | + ScriptOptions, |
| 82 | + SourceFormat, |
| 83 | + TransactionInfo, |
| 84 | + UnknownJob, |
| 85 | + WriteDisposition, |
| 86 | +) |
60 | 87 | from google.cloud.bigquery.job.base import SessionInfo |
61 | | -from google.cloud.bigquery.job import Compression |
62 | | -from google.cloud.bigquery.job import CopyJob |
63 | | -from google.cloud.bigquery.job import CopyJobConfig |
64 | | -from google.cloud.bigquery.job import CreateDisposition |
65 | | -from google.cloud.bigquery.job import DestinationFormat |
66 | | -from google.cloud.bigquery.job import DmlStats |
67 | | -from google.cloud.bigquery.job import Encoding |
68 | | -from google.cloud.bigquery.job import ExtractJob |
69 | | -from google.cloud.bigquery.job import ExtractJobConfig |
70 | | -from google.cloud.bigquery.job import LoadJob |
71 | | -from google.cloud.bigquery.job import LoadJobConfig |
72 | | -from google.cloud.bigquery.job import OperationType |
73 | | -from google.cloud.bigquery.job import QueryJob |
74 | | -from google.cloud.bigquery.job import QueryJobConfig |
75 | | -from google.cloud.bigquery.job import QueryPriority |
76 | | -from google.cloud.bigquery.job import SchemaUpdateOption |
77 | | -from google.cloud.bigquery.job import ScriptOptions |
78 | | -from google.cloud.bigquery.job import SourceFormat |
79 | | -from google.cloud.bigquery.job import UnknownJob |
80 | | -from google.cloud.bigquery.job import TransactionInfo |
81 | | -from google.cloud.bigquery.job import WriteDisposition |
82 | | -from google.cloud.bigquery.model import Model |
83 | | -from google.cloud.bigquery.model import ModelReference |
84 | | -from google.cloud.bigquery.query import ArrayQueryParameter |
85 | | -from google.cloud.bigquery.query import ArrayQueryParameterType |
86 | | -from google.cloud.bigquery.query import ConnectionProperty |
87 | | -from google.cloud.bigquery.query import ScalarQueryParameter |
88 | | -from google.cloud.bigquery.query import ScalarQueryParameterType |
89 | | -from google.cloud.bigquery.query import RangeQueryParameter |
90 | | -from google.cloud.bigquery.query import RangeQueryParameterType |
91 | | -from google.cloud.bigquery.query import SqlParameterScalarTypes |
92 | | -from google.cloud.bigquery.query import StructQueryParameter |
93 | | -from google.cloud.bigquery.query import StructQueryParameterType |
94 | | -from google.cloud.bigquery.query import UDFResource |
| 88 | +from google.cloud.bigquery.model import Model, ModelReference |
| 89 | +from google.cloud.bigquery.query import ( |
| 90 | + ArrayQueryParameter, |
| 91 | + ArrayQueryParameterType, |
| 92 | + ConnectionProperty, |
| 93 | + RangeQueryParameter, |
| 94 | + RangeQueryParameterType, |
| 95 | + ScalarQueryParameter, |
| 96 | + ScalarQueryParameterType, |
| 97 | + SqlParameterScalarTypes, |
| 98 | + StructQueryParameter, |
| 99 | + StructQueryParameterType, |
| 100 | + UDFResource, |
| 101 | +) |
95 | 102 | from google.cloud.bigquery.retry import DEFAULT_RETRY |
96 | | -from google.cloud.bigquery.routine import DeterminismLevel |
97 | | -from google.cloud.bigquery.routine import Routine |
98 | | -from google.cloud.bigquery.routine import RoutineArgument |
99 | | -from google.cloud.bigquery.routine import RoutineReference |
100 | | -from google.cloud.bigquery.routine import RoutineType |
101 | | -from google.cloud.bigquery.routine import RemoteFunctionOptions |
102 | | -from google.cloud.bigquery.routine import ExternalRuntimeOptions |
103 | | -from google.cloud.bigquery.schema import PolicyTagList |
104 | | -from google.cloud.bigquery.schema import SchemaField |
105 | | -from google.cloud.bigquery.schema import FieldElementType |
106 | | -from google.cloud.bigquery.standard_sql import StandardSqlDataType |
107 | | -from google.cloud.bigquery.standard_sql import StandardSqlField |
108 | | -from google.cloud.bigquery.standard_sql import StandardSqlStructType |
109 | | -from google.cloud.bigquery.standard_sql import StandardSqlTableType |
110 | | -from google.cloud.bigquery.table import PartitionRange |
111 | | -from google.cloud.bigquery.table import RangePartitioning |
112 | | -from google.cloud.bigquery.table import Row |
113 | | -from google.cloud.bigquery.table import SnapshotDefinition |
114 | | -from google.cloud.bigquery.table import CloneDefinition |
115 | | -from google.cloud.bigquery.table import Table |
116 | | -from google.cloud.bigquery.table import TableReference |
117 | | -from google.cloud.bigquery.table import TimePartitioningType |
118 | | -from google.cloud.bigquery.table import TimePartitioning |
119 | | -from google.cloud.bigquery.encryption_configuration import EncryptionConfiguration |
| 103 | +from google.cloud.bigquery.routine import ( |
| 104 | + DeterminismLevel, |
| 105 | + ExternalRuntimeOptions, |
| 106 | + RemoteFunctionOptions, |
| 107 | + Routine, |
| 108 | + RoutineArgument, |
| 109 | + RoutineReference, |
| 110 | + RoutineType, |
| 111 | +) |
| 112 | +from google.cloud.bigquery.schema import FieldElementType, PolicyTagList, SchemaField |
| 113 | +from google.cloud.bigquery.standard_sql import ( |
| 114 | + StandardSqlDataType, |
| 115 | + StandardSqlField, |
| 116 | + StandardSqlStructType, |
| 117 | + StandardSqlTableType, |
| 118 | +) |
| 119 | +from google.cloud.bigquery.table import ( |
| 120 | + CloneDefinition, |
| 121 | + PartitionRange, |
| 122 | + RangePartitioning, |
| 123 | + Row, |
| 124 | + SnapshotDefinition, |
| 125 | + Table, |
| 126 | + TableReference, |
| 127 | + TimePartitioning, |
| 128 | + TimePartitioningType, |
| 129 | +) |
120 | 130 |
|
121 | 131 | try: |
122 | 132 | import bigquery_magics # type: ignore |
|
0 commit comments