Skip to content

Commit e152bc8

Browse files
committed
Fix some type error
1 parent 6c83c35 commit e152bc8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

proton_driver/columns/nestedcolumn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def create_nested_column(spec, column_by_spec_getter):
66
return create_array_column(
7-
'Array(Tuple({}))'.format(','.join(get_nested_columns(spec))),
7+
'array(tuple({}))'.format(','.join(get_nested_columns(spec))),
88
column_by_spec_getter=column_by_spec_getter
99
)
1010

@@ -58,7 +58,7 @@ def get_columns_with_types(spec):
5858

5959
def get_inner_spec(spec):
6060
brackets = 0
61-
offset = len('Nested')
61+
offset = len('nested')
6262
i = offset
6363
for i, ch in enumerate(spec[offset:], offset):
6464
if ch == '(':

proton_driver/columns/numpy/lowcardinalitycolumn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ def _read_data(self, n_items, buf, nulls_map=None):
9090

9191

9292
def create_numpy_low_cardinality_column(spec, column_by_spec_getter):
93-
inner = spec[15:-1]
93+
inner = spec[16:-1]
9494
nested = column_by_spec_getter(inner)
9595
return NumpyLowCardinalityColumn(nested)

proton_driver/columns/numpy/stringcolumn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ def create_string_column(spec, column_options):
7373
cls = NumpyByteStringColumn if strings_as_bytes else NumpyStringColumn
7474
return cls(encoding=encoding, **column_options)
7575
else:
76-
length = int(spec[12:-1])
76+
length = int(spec[13:-1])
7777
cls = NumpyByteFixedString if strings_as_bytes else NumpyFixedString
7878
return cls(length, encoding=encoding, **column_options)

0 commit comments

Comments
 (0)