-
Notifications
You must be signed in to change notification settings - Fork 705
implement couler codegen #1268
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 couler codegen #1268
Conversation
4c27e9e to
a0a3364
Compare
| } | ||
|
|
||
| // 3. submit Argo YAML and fetch the workflow ID. | ||
| cmd = exec.Command("kubectl", "create", "-f", argoYaml.Name()) |
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.
can use k8s API here?
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.
Sure, will import k8s package when implement Fetch gRPC interface, and I will rewrite here to use k8s API.
| r := &coulerFiller{} | ||
| for _, sqlIR := range programIR { | ||
| ss := &sqlStatment{} | ||
| switch sqlIR.(type) { |
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.
Maybe we need to update this implement to #1272.
| # TODO(yancey1989): | ||
| # using "repl -parse" to output IR and | ||
| # feed to "sqlflow_submitter.{submitter}.train" to submite the job | ||
| couler.run_container(command='''repl -e "{{ $ss.OriginalSQL }}"''', image="{{ $ss.DockerImage }}") |
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.
Maybe add env as the session at here.
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.
You're right, will add it in the next PR.
part work of #1066
TODO: add e2e test for couler mode