Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed boolean reading #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions parquet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def println(value):
"converted_type={converted_type}".format(
name=element.name,
type=parquet_thrift.Type._VALUES_TO_NAMES[element.type] # pylint: disable=protected-access
if element.type else None,
if element.type is not None else None,
type_length=element.type_length,
repetition_type=_get_name(parquet_thrift.FieldRepetitionType,
element.repetition_type),
Expand Down Expand Up @@ -415,7 +415,7 @@ def DictReader(file_obj, columns=None): # pylint: disable=invalid-name
"""
footer = _read_footer(file_obj)
keys = columns if columns else [s.name for s in
footer.schema if s.type]
footer.schema if s.type is not None]

for row in reader(file_obj, columns):
yield OrderedDict(zip(keys, row))
Expand All @@ -437,7 +437,7 @@ def reader(file_obj, columns=None):
footer = _read_footer(file_obj)
schema_helper = schema.SchemaHelper(footer.schema)
keys = columns if columns else [s.name for s in
footer.schema if s.type]
footer.schema if s.type is not None]
debug_logging = logger.isEnabledFor(logging.DEBUG)
for row_group in footer.row_groups:
res = defaultdict(list)
Expand Down