Skip to content

Lazy Expression compiles successfully but will fail on execution #390

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

Open
lshaw8317 opened this issue Apr 29, 2025 · 2 comments
Open

Lazy Expression compiles successfully but will fail on execution #390

lshaw8317 opened this issue Apr 29, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@lshaw8317
Copy link
Collaborator

lshaw8317 commented Apr 29, 2025

Describe the bug
One can generate a lazy expression which is invalid due to operand data types, but this is not manifested until one tries to compute.

To Reproduce

import blosc2
N = 1_000
dtype = 'float64'

a = blosc2.linspace(0, 1, N * N, dtype=dtype, shape=(N, N))
b = blosc2.linspace(1, 2, N * N, dtype=dtype, shape=(N, N))
le1 = a + 2
le2 = le1 & (b < 0) #Does not fail
le2.compute() #Does fail

Expected behavior
Perhaps when checking/validating the expression, one should perform some additional checks, and the lazy expression does not generate successfully.

@FrancescAlted
Copy link
Member

Fixed in #391

@lshaw8317
Copy link
Collaborator Author

lshaw8317 commented Apr 30, 2025

Fixed in #391

This is a separate issue to the chaining of lazy expressions, it relates to differing data types of operands.

@lshaw8317 lshaw8317 reopened this Apr 30, 2025
@lshaw8317 lshaw8317 added the enhancement New feature or request label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants