You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "kz930 (via GitHub)" <gi...@apache.org> on 2026/10/21 22:17:05 UTC
[I] A Python operator pauses the run on a LONG column that holds a null and a value past 2^53 [texera]
kz930 opened a new issue, #9077:
URL: https://github.com/apache/texera/issues/9077
### What happened?
A Python operator, such as Sort or a Python UDF, pauses the workflow when its input has a LONG column that holds a null and a value past 2^53. The run stops with:
`TypeError: Unmatched type for field 'big', expected AttributeType.LONG, got 9007199254741012.0 (<class 'float'>) instead.`
The value is already wrong before that check runs. `Table.from_tuple_likes` builds the operator's input with `pandas.DataFrame.from_records`, and pandas 2.2.3 turns an integer column that holds a None into float64. A float64 holds every integer only up to 2^53, so `9007199254740993` becomes `9007199254740992`. `Tuple.cast_to_schema` turns an integral float back into an int only inside that window, as #6278 decided, so a value outside it fails validation instead of being written out wrong.
The cause is the input conversion. Building the frame with a nullable `Int64` dtype for INTEGER and LONG columns would keep both the null and the value. That changes the dtype every Python operator is handed, so it seems worth agreeing on before a change.
### How to reproduce?
The conversion alone, with pandas 2.2.3:
```python
import pandas as pd
df = pd.DataFrame.from_records([(9007199254740993,), (None,)], columns=["big"])
df["big"].dtype # float64
int(df["big"][0]) # 9007199254740992
```
End to end, a workflow that reads a CSV with a LONG column holding `9007199254740993` and an empty cell, and sorts it with Sort, pauses on the error above.
### Version/Branch
1.4.0-incubating-SNAPSHOT (main)
### Commit Hash (Optional)
3ba45ee5a
### What browsers are you seeing the problem on?
_No response_
### Relevant log output
```shell
TypeError: Unmatched type for field 'big', expected AttributeType.LONG, got 9007199254741012.0 (<class 'float'>) instead. The yielded columns and their types must match the operator's output columns
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] A Python operator pauses the run on a LONG column that holds a null and a value past 2^53 [texera]
Posted by "kz930 (via GitHub) via notifications" <no...@texera.apache.org>.
kz930 commented on issue #9077:
URL: https://github.com/apache/texera/issues/9077#issuecomment-7114451927
@sunny-kavixo are you still working on this? If you've moved on, I'm happy to pick it up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] A Python operator pauses the run on a LONG column that holds a null and a value past 2^53 [texera]
Posted by "sunny-kavixo (via GitHub) via notifications" <no...@texera.apache.org>.
sunny-kavixo commented on issue #9077:
URL: https://github.com/apache/texera/issues/9077#issuecomment-6802234244
Hi maintainers! I'd like to investigate this issue. I'll reproduce the integer precision loss with null values, evaluate nullable integer handling, and propose regression tests covering values beyond 2^53. Since this may affect multiple Python operators, I'll confirm the approach before changing shared behavior.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] A Python operator pauses the run on a LONG column that holds a null and a value past 2^53 [texera]
Posted by "aglinxinyuan (via GitHub) via notifications" <no...@texera.apache.org>.
aglinxinyuan closed issue #9077: A Python operator pauses the run on a LONG column that holds a null and a value past 2^53
URL: https://github.com/apache/texera/issues/9077
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] A Python operator pauses the run on a LONG column that holds a null and a value past 2^53 [texera]
Posted by "kz930 (via GitHub) via notifications" <no...@texera.apache.org>.
kz930 commented on issue #9077:
URL: https://github.com/apache/texera/issues/9077#issuecomment-7293871218
Since there's been no reply, I'll pick this up. The plan is to build the input frame in `Table.from_tuple_likes` with a nullable `Int64` dtype for INTEGER and LONG columns, and I'll open a PR so the dtype change can be discussed there.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] A Python operator pauses the run on a LONG column that holds a null and a value past 2^53 [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9077:
URL: https://github.com/apache/texera/issues/9077#issuecomment-6328700196
<!-- texera:template-compliance -->
👋 Thanks for opening this issue, @kz930!
It looks like the issue description doesn't quite follow our template yet:
- This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org