-
Notifications
You must be signed in to change notification settings - Fork 323
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
Adding typechecks to Column Operations #6298
Conversation
distribution/lib/Standard/Table/0.0.0-dev/src/Data/Type/Value_Type.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Table/0.0.0-dev/src/Data/Type/Value_Type_Helpers.enso
Outdated
Show resolved
Hide resolved
8fda1a0
to
61b013c
Compare
2369ff2
to
ddb7f67
Compare
1c294ce
to
09f9df2
Compare
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.
Through quite a lot of the files... will finish review shortly but here are a few comments!
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Database_Type_Helpers.enso
Outdated
Show resolved
Hide resolved
- types: The types that were tried to be unified. | ||
- related_column_name: The name of the resulting column that was being | ||
unified, if applicable. | ||
Error (types : Vector Value_Type) (related_column_name : Nothing|Text) |
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.
should we default related_column_name
to Nothing
?
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.
I thought it could be better to keep it required and specify Nothing
explicitly. Otherwise, with other errors like that I was sometimes not adding the related column, because it was optional and I was simply forgetting it is supposed to be there. Whereas, if it's a required argument it forces to think if we can 'put something' there.
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Statement_Setter.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Table/0.0.0-dev/src/Data/Type/Value_Type.enso
Outdated
Show resolved
Hide resolved
7c7b4b3
to
fdbf5e3
Compare
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.
One slight change please.
Looks really good and great range of test coverage.
distribution/lib/Standard/Database/0.0.0-dev/src/Data/Table.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Data/Column.enso
Outdated
Show resolved
Hide resolved
Booleans are no longer _automatically_ coerced with numbers. Adding type unification checks to `iif`, `fill_nothing` and `coalesce`.
…uperseded by Column.replace)
fdbf5e3
to
2bf87d2
Compare
Follow up of #6298 as it grew too much. Adds the needed typechecks to aggregate operations. Ensures that the DB operations report `Floating_Point_Equality` warning consistently with in-memory.
* develop: Turn null into UnexpectedExpression when Union type is incomplete (#6415) Ensure that IO.println does not fail if `to_text` returned a non-Text value. (#6223) Improve inlining of `<|` on (GraalVM EE) (#6384) Feat: update templates styles and feature (#6071) 5127 Add Table.parse_to_columns to parse a single column to a set of columns. (#6383) URL handling (#6243) Exclude comparison operators from modifier logic (#6370) Better cleanup of project management test suite (#6392) Fix all eslint errors (#6267) Infer SQLite types locally (#6381) Vector Editor with List Editor and adding elements. (#6363) Add typechecks to Aggregate and Cross Tab (#6380) Forbid edits in read-only mode (#6342) Add Table.parse_text_to_table to convert Text to a Table. (#6294) Adding typechecks to Column Operations (#6298) Rollback cloud options groups (#6331) Project folder not renamed after project name change (#6369) Add `replace`, `trim` to Column. Better number parsing. (#6253) Read-only mode for controllers (#6259) Prevent default for all events, fixing multiple IDE bugs (#6364)
Pull Request Description
Closes #6106
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.