10
10
11
11
from distutils .version import StrictVersion
12
12
from pandas import compat , DataFrame , concat
13
- from pandas .core .common import PandasError
14
13
from pandas .compat import lzip , bytes_to_str
15
14
16
15
@@ -58,35 +57,35 @@ def _test_google_api_imports():
58
57
"support: {0}" .format (str (e )))
59
58
60
59
61
- class InvalidPrivateKeyFormat (PandasError , ValueError ):
60
+ class InvalidPrivateKeyFormat (ValueError ):
62
61
"""
63
62
Raised when provided private key has invalid format.
64
63
"""
65
64
pass
66
65
67
66
68
- class AccessDenied (PandasError , ValueError ):
67
+ class AccessDenied (ValueError ):
69
68
"""
70
69
Raised when invalid credentials are provided, or tokens have expired.
71
70
"""
72
71
pass
73
72
74
73
75
- class DatasetCreationError (PandasError , ValueError ):
74
+ class DatasetCreationError (ValueError ):
76
75
"""
77
76
Raised when the create dataset method fails
78
77
"""
79
78
pass
80
79
81
80
82
- class GenericGBQException (PandasError , ValueError ):
81
+ class GenericGBQException (ValueError ):
83
82
"""
84
83
Raised when an unrecognized Google API Error occurs.
85
84
"""
86
85
pass
87
86
88
87
89
- class InvalidColumnOrder (PandasError , ValueError ):
88
+ class InvalidColumnOrder (ValueError ):
90
89
"""
91
90
Raised when the provided column order for output
92
91
results DataFrame does not match the schema
@@ -95,7 +94,7 @@ class InvalidColumnOrder(PandasError, ValueError):
95
94
pass
96
95
97
96
98
- class InvalidIndexColumn (PandasError , ValueError ):
97
+ class InvalidIndexColumn (ValueError ):
99
98
"""
100
99
Raised when the provided index column for output
101
100
results DataFrame does not match the schema
@@ -104,15 +103,15 @@ class InvalidIndexColumn(PandasError, ValueError):
104
103
pass
105
104
106
105
107
- class InvalidPageToken (PandasError , ValueError ):
106
+ class InvalidPageToken (ValueError ):
108
107
"""
109
108
Raised when Google BigQuery fails to return,
110
109
or returns a duplicate page token.
111
110
"""
112
111
pass
113
112
114
113
115
- class InvalidSchema (PandasError , ValueError ):
114
+ class InvalidSchema (ValueError ):
116
115
"""
117
116
Raised when the provided DataFrame does
118
117
not match the schema of the destination
@@ -121,23 +120,23 @@ class InvalidSchema(PandasError, ValueError):
121
120
pass
122
121
123
122
124
- class NotFoundException (PandasError , ValueError ):
123
+ class NotFoundException (ValueError ):
125
124
"""
126
125
Raised when the project_id, table or dataset provided in the query could
127
126
not be found.
128
127
"""
129
128
pass
130
129
131
130
132
- class StreamingInsertError (PandasError , ValueError ):
131
+ class StreamingInsertError (ValueError ):
133
132
"""
134
133
Raised when BigQuery reports a streaming insert error.
135
134
For more information see `Streaming Data Into BigQuery
136
135
<https://cloud.google.com/bigquery/streaming-data-into-bigquery>`__
137
136
"""
138
137
139
138
140
- class TableCreationError (PandasError , ValueError ):
139
+ class TableCreationError (ValueError ):
141
140
"""
142
141
Raised when the create table method fails
143
142
"""
0 commit comments