-
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
Implement Table.union
for Database backend
#6204
Conversation
ed1e5e7
to
9d882a3
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.
Generally looks good to me. A couple of minor checks.
distribution/lib/Standard/Database/0.0.0-dev/src/Data/Column.enso
Outdated
Show resolved
Hide resolved
@@ -13,6 +13,7 @@ import Standard.Table.Data.Expression.Expression | |||
import Standard.Table.Data.Expression.Expression_Error | |||
import Standard.Table.Data.Join_Condition.Join_Condition | |||
import Standard.Table.Data.Join_Kind.Join_Kind | |||
import Standard.Table.Data.Match_Columns as Match_Columns_Helpers |
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.
Why aliased?
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.
Because we import Match_Columns
type just a few lines above.
And we need to distinguish the type from the module.
I'd like to keep the helpers static on the module to keep them more hidden - if they are on the type they are easier to use by users which they are not intended for that.
cast expressions on union to unify types
TODO: bool->int
For now less efficient query metadata fetching, TODO probably worth to just infer SQLite types locally and override
…x for Postgres type name bool.
Proper solution needed (TODO add task to infer SQLite types locally)
0adc787
to
d8307e4
Compare
* develop: Project Sharing (#6077) Adjust `{Table|Column}.parse` to use `Value_Type` (#6213) Add cloud endpoints for frontend (#6002) Implement `Table.union` for Database backend (#6204) Batch insert suggestions (#6189) Formatter fix to not fail when encountering an invalid symlink. (#6172) Suspended atom fields are evaluated only once (#6151) Text.to_display_text is (shortened) identity (#6174) Engine benchmark visualization tool can compare two bench runs (#6198) Add PRIVATE so function hidden from Component Browser and other tidying... (#6207) Hotfix for #6203. (#6210)
Pull Request Description
Closes #5235
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
.