Skip to content

SQLFlow Predict SQL generate ODPS UDF program #604

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

Closed
2 of 3 tasks
Yancey0623 opened this issue Jul 26, 2019 · 1 comment
Closed
2 of 3 tasks

SQLFlow Predict SQL generate ODPS UDF program #604

Yancey0623 opened this issue Jul 26, 2019 · 1 comment
Assignees

Comments

@Yancey0623
Copy link
Collaborator

Yancey0623 commented Jul 26, 2019

Is your feature request related to a problem? Please describe.

SQLFlow would use ODPS UDF as the Alps prediction Job, for a simple example prediction UDF program:

set mst.model.name=push_common.model;
set mst.oss.id=aaa;
set mst.oss.key=bbb;

.....

SELECT sqlflow_projet.alps_inference(
            concat_ws(",",user_id,label)
            ,1
            ,"deep_id"
            ,COALESCE(deep_id, "")
        ) as (user_info, score)
FROM sqlflow_projet.users;

The SQLFlow Predict SQL can be like:

SELECT sqlflow_projet.alps_inference(
            concat_ws(',',user_id,label)
            ,1
            ,"deep_id"
            ,COALESCE(deep_id, "")
        ) AS (user_info, score)
FROM sqlflow_projet.users
PREDICT sqlflow_project.pred_result
USING sqlflow_model;

There would be two tasks to finish this feature:

NOTE: For the future, we need a more general solution to parse the standard SQL syntax.

@tonyyang-svail
Copy link
Collaborator

This issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants