-
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
Data analysts should be able to transform a Table using the select_columns function #3230
Conversation
d1e12a6
to
87c1f00
Compare
87c1f00
to
903266b
Compare
2a74cf6
to
387a227
Compare
903266b
to
bee5458
Compare
6a5ab36
to
70ff6d6
Compare
bee5458
to
13001e1
Compare
853803b
to
f9b22f8
Compare
f9b22f8
to
7c1c05c
Compare
distribution/lib/Standard/Base/0.2.32-SNAPSHOT/src/Error/Problem_Behavior.enso
Outdated
Show resolved
Hide resolved
|
||
from Standard.Database.Data.Column as Column_Module import all | ||
from Standard.Database.Data.Internal.IR import Internal_Column | ||
from Standard.Table.Data.Order_Rule as Order_Rule_Module import Order_Rule | ||
from Standard.Table.Data.Table import No_Such_Column_Error | ||
from Standard.Table.Data.Order_Rule as Order_Rule_Module import Order_Rule |
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.
duplicate import - should this be raised as an issue?
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.
As in a compiler warning? I'm not sure. May be worth asking someone from the engine team I guess.
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.
Answering the question – yes, it should raise a warning. If it's not, please add such ticket for the Engine team.
distribution/lib/Standard/Base/0.2.32-SNAPSHOT/src/Error/Problem_Behavior.enso
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,29 @@ | |||
from Standard.Base import all | |||
|
|||
from Standard.Table.Data.Matching import all |
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.
Technically only need to import Matching_Strategy
- as a type definition probably worth being tight.
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.
Well, we are also using Exact
imported from there. Then I'd need to change it to Matching.Exact
.
What we import is not exported by default (need an explicit export
statement), so I don't think it matters really. But can change if you think that's better.
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.
We should use "all" imports for prelude like stuff only. This was described in the Language document by my and Ara some time ago. The "all" import should be rare as it pollutes the scope a lot.
distribution/lib/Standard/Database/0.2.32-SNAPSHOT/src/Data/Table.enso
Outdated
Show resolved
Hide resolved
|
||
from Standard.Database.Data.Column as Column_Module import all | ||
from Standard.Database.Data.Internal.IR import Internal_Column | ||
from Standard.Table.Data.Order_Rule as Order_Rule_Module import Order_Rule | ||
from Standard.Table.Data.Table import No_Such_Column_Error | ||
from Standard.Table.Data.Order_Rule as Order_Rule_Module import Order_Rule | ||
from Standard.Table.Data.Column_Selector as Column_Selector_Module import all | ||
from Standard.Base.Error.Problem_Behavior as Problem_Behavior_Module import all |
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.
import Problem_Behavior
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.
Similar thing with "all" imports – we should not pollute the scope this way. The rule in Enso is to import only needed things, not all.
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.
This should be drastically improved after we implement the auto-scoping mechanism in the Engine. Btw, you've been talking with Engine about that already, right?
distribution/lib/Standard/Table/0.2.32-SNAPSHOT/src/Data/Table.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Table/0.2.32-SNAPSHOT/src/Internal/Table_Helpers.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Table/0.2.32-SNAPSHOT/src/Internal/Table_Helpers.enso
Outdated
Show resolved
Hide resolved
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.
A few minor corrections.
A little bit of clarity needed on the Problem_Behavior stuff.
The main function looks good but wonder if shuffled could be clearer to read.
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.
Cool implementation @radeusgd . @jdunkerley thanks for an amazing review!
Pull Request Description
Important Notes
Checklist
Please include the following checklist in your PR: