Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: Balaji Veeramani <[email protected]>
  • Loading branch information
bveeramani committed Dec 2, 2024
1 parent f5f10f5 commit 9593bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ray/data/read_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ def create_connection():
Returns:
A :class:`Dataset` containing the queried data.
"""
if parallelism != -1 or parallelism != 1:
if parallelism != -1 and parallelism != 1:
raise ValueError(
"To ensure correctness, 'read_sql' always launches one task. The "
"'parallelism' argument you specified can't be used."
Expand Down

0 comments on commit 9593bc6

Please sign in to comment.