-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Remove NoMetadataSchema and make its relatives not ISchema #2080
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
Conversation
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.
Looks great. I like how the majority of your additions are actually explanatory comments to make this somewhat odd class easier to understand! Thanks @wschin !
@@ -810,27 +810,48 @@ public DataViewSlicer(IHost host, IDataView input, int[] toSlice) | |||
{ | |||
var splitter = _splitters[c] = Splitter.Create(_input, toSlice[c]); | |||
_host.Assert(splitter.ColumnCount >= 1); | |||
// One splitter can produce multiple columns because it split a input column into multiple output columns. |
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.
split a [](start = 76, length = 7)
nit: splits an
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.
var selectedColumn = _view.Schema[col]; | ||
var schemaBuilder = new SchemaBuilder(); | ||
for (int c = 0; c < _lims.Length; ++c) | ||
schemaBuilder.AddColumn(selectedColumn.Name, _types[c]); |
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.
schemaBuilder.AddColumn(selectedColumn.Name, _types[c]); [](start = 27, length = 57)
double-checking that omitting metadata is deliberate.
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.
It is reasonable because splitting a vector-valued column breaks most metadata. It's why previously Splitter
was a NoMetadataSchema
.
In reply to: 246463230 [](ancestors = 246463230)
4000d1e
to
adc2db2
Compare
As title. This PR belongs to #1501.