Skip to content

Commit a201c12

Browse files
Style tweaks, comming from google account
1 parent 1e35a9e commit a201c12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tensorflow_io/bigquery/kernels/bigquery_lib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class BigQueryReaderDatasetIterator : public DatasetIterator<Dataset> {
253253
((*out_tensors)[i]).scalar<string>()() =
254254
field.value<avro::GenericEnum>().symbol();
255255
break;
256-
case avro::AVRO_NULL:
256+
case avro::AVRO_NULL: // Fallthrough;
257257
break;
258258
default:
259259
return errors::InvalidArgument("unsupported data type: ",

tensorflow_io/bigquery/python/ops/bigquery_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from __future__ import print_function
2929

3030
import collections
31-
import operator
31+
from operator import itemgetter
3232

3333
from tensorflow.python.data.experimental.ops import interleave_ops
3434
from tensorflow.python.data.ops import dataset_ops
@@ -231,7 +231,7 @@ def __init__(self, client_resource, selected_fields, output_types,
231231
# of b/141251314
232232
sorted_fields_with_types = sorted(
233233
zip(selected_fields, output_types),
234-
key=operator.itemgetter(0))
234+
key=itemgetter(0))
235235
selected_fields, output_types = list(zip(*sorted_fields_with_types))
236236
selected_fields = list(selected_fields)
237237
output_types = list(output_types)

0 commit comments

Comments
 (0)