Skip to content

add modeluri for model zoo to save #1281

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

typhoonzero
Copy link
Collaborator

Part of #1063

@@ -23,7 +23,8 @@ import (
pb "sqlflow.org/sqlflow/pkg/proto"
)

const bufSize = 4 * 1024
// TEXT/STRING field support 64KB maximumn storage size
const bufSize = 32 * 1024
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this bufSize configurable? If my memory serves me right, the string type in MaxCompute has a much bigger size than 64KB.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to keep it constant for better saved model migrations.

return fmt.Errorf("error modelURI format: %s", modelURI)
}
}
db, err := NewDB(session.DbConnStr)
Copy link
Collaborator

@shendiaomo shendiaomo Nov 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to unify sqlfs with modelURI? For example, can we make sqlfs://database_name/table_name behave the same as table_name? This seems to improve consistency.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oss:// and file:// are well know URI prefixes. We do not intend to invent a new one.

@typhoonzero typhoonzero merged commit fdb948c into sql-machine-learning:develop Dec 2, 2019
@typhoonzero typhoonzero deleted the model_uri_for_model_zoo_to_save branch December 2, 2019 08:53
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

Successfully merging this pull request may close these issues.

None yet

2 participants