-
Notifications
You must be signed in to change notification settings - Fork 705
[Intermediate Representation] Generate AnalyzeIR #997
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
[Intermediate Representation] Generate AnalyzeIR #997
Conversation
f91555e to
516073f
Compare
675fc40 to
d635bf2
Compare
| // TODO(joyyoj) read feature mapping table's name from table attributes. | ||
| // TODO(joyyoj) pr may contains partition. | ||
| fmap := columns.FeatureMap{pr.tables[0] + "_feature_map", ""} | ||
| fmap := columns.FeatureMap{ |
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.
Not sure why we need to change these files. Have you used a code formatter?
| userSpec.DType, | ||
| userSpec.Delimiter, | ||
| nil, | ||
| *meta.featureMap} |
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.
Is there a linter complaining we need to explicitly name the field name? If so, please file the change in a separate PR.
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.
The go vet complains: [govet] xxx(struct) composite literal uses unkeyed fields [E] while I'm editing in another file.
I found that there was not much code to be changed, so I changed them conveniently.
typhoonzero
left a comment
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.
LGTM++
…g#997) * Remove complaints: "GOLANG: composite literal uses unkeyed fields" * add explainer for AnalyzeIR * add test for analyzeIR * add ut for generateAnalyzeIR * remove TO before TRAIN/ANALYZE in ut
fix #976