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

[hail] optimizer breaks correctness of scans #6408

Closed
danking opened this issue Jun 19, 2019 · 0 comments · Fixed by #6419
Closed

[hail] optimizer breaks correctness of scans #6408

danking opened this issue Jun 19, 2019 · 0 comments · Fixed by #6419
Assignees

Comments

@danking
Copy link
Collaborator

@danking danking commented Jun 19, 2019

Actual behavior:

In [6]: import hail as hl
   ...: ht = hl.utils.range_table(1000, n_partitions=100)
   ...: ht = ht.annotate(rank = hl.scan.count())
   ...: ht = hl.filter_intervals(ht, [hl.interval(990, 1000)])
   ...: ht.show()
2019-06-19 18:03:40 Hail: INFO: reading 1 of 100 data partitions
+-------+-------+
|   idx |  rank |
+-------+-------+
| int32 | int64 |
+-------+-------+
|   990 |     0 |
|   991 |     1 |
|   992 |     2 |
|   993 |     3 |
|   994 |     4 |
|   995 |     5 |
|   996 |     6 |
|   997 |     7 |
|   998 |     8 |
|   999 |     9 |
+-------+-------+

Expected behavior:

In [6]: import hail as hl
   ...: ht = hl.utils.range_table(1000, n_partitions=100)
   ...: ht = ht.annotate(rank = hl.scan.count())
   ...: ht = hl.filter_intervals(ht, [hl.interval(990, 1000)])
   ...: ht.show()
+-------+-------+
|   idx |  rank |
+-------+-------+
| int32 | int64 |
+-------+-------+
|   990 |   990 |
|   991 |   991 |
|   992 |   992 |
|   993 |   993 |
|   994 |   994 |
|   995 |   995 |
|   996 |   996 |
|   997 |   997 |
|   998 |   998 |
|   999 |   999 |
+-------+-------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants