Skip to content

pandas.read_sql_athena() throw ZeroDivisionError #102

@josecw

Description

@josecw

The function throw ZeroDivisionError: division by zero when there is no row returns.

Details:
File "/home/lib64/python3.6/dist-packages/awswrangler/pandas.py", line 547, in read_sql_athena procs_cpu_bound=procs_cpu_bound) File "/home/lib64/python3.6/dist-packages/awswrangler/pandas.py", line 580, in _read_sql_athena_ctas return self.read_parquet(path=paths, procs_cpu_bound=procs_cpu_bound) File "/home/lib64/python3.6/dist-packages/awswrangler/pandas.py", line 1254, in read_parquet bounders = calculate_bounders(len(path), procs_cpu_bound) File "/home/lib64/python3.6/dist-packages/awswrangler/utils.py", line 16, in calculate_bounders size = int(num_items / num_groups)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions