-
Notifications
You must be signed in to change notification settings - Fork 119
[python] Test case for #5520 (incorrect serialization of infinity) #6259
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| from tests.runtime_aggtest.aggtst_base import TstView | ||
| from tests.runtime_aggtest.aggtst_base import TstTable, TstView | ||
|
|
||
|
|
||
| # NOTE: SINH, COSH, EXP tests are supplied smaller input due to: https://github.com/feldera/feldera/issues/5520 | ||
| # ABS | ||
| class un_int_abs(TstView): | ||
| def __init__(self): | ||
|
|
@@ -366,6 +365,21 @@ def __init__(self): | |
| WHERE id = 1""" | ||
|
|
||
|
|
||
| class tableIssue5520(TstTable): | ||
| def __init__(self): | ||
| self.sql = "CREATE TABLE tbl5520(dbl DOUBLE);" | ||
| self.data = [{"dbl": 10192.0}] | ||
|
|
||
|
|
||
| # SINH | ||
| class issue5520(TstView): | ||
| def __init__(self): | ||
| self.data = [{"d": "Infinity"}] | ||
| self.sql = """CREATE MATERIALIZED VIEW issue5520view AS SELECT | ||
| CAST(SINH(dbl) AS VARCHAR) AS d | ||
| FROM tbl5520""" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Issue #5520 reports the bug for EXP, SINH, and COSH, but this regression test only exercises |
||
|
|
||
|
|
||
| # SQRT | ||
| class un_int_sqrt(TstView): | ||
| def __init__(self): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch on
list→sequence. While you are in the docstring, the:return:line a few lines below still says "A generator that yieldspyarrow.Mappingobjects." — that is the second half of the same nit from PR #6250. It yields plaindicts; please fix this one too.