-
Notifications
You must be signed in to change notification settings - Fork 4
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
Compute and check type of cells #860
Comments
Question I am checking the types using T_co = TypeVar("T_co", covariant=True)
P_contra = TypeVar("P_contra", contravariant=True)
R_co = TypeVar("R_co", covariant=True)
``` and for example doing
```python
def add(self: Cell[T_co], other: Cell[T_co]) -> Cell[R_co]: ... the user sees something like (method) def add(other: Cell[int]) -> Cell[int] but what do |
Add do we need to write new tests to see if the checking works ? |
That's Python's type system. Python's type system is not capable of capturing the type of the cell at runtime, though. You need to add an actual field for that. |
Is your feature request related to a problem?
Cells are our concept to lazily (i.e. the data must not be loaded immediately) execute vectorized operations on tables. The laziness is essential for efficiency, since it enables optimization of queries and more. However, the drawback of the laziness is that validation of operations on cells also happens very late.
Desired solution
Type computation:
None
.Type checking:
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: