-
Notifications
You must be signed in to change notification settings - Fork 407
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
Serialize compile request #6867
Conversation
The latter will be replaced by serializable CompileRequest
a4815c0
to
42f5e1f
Compare
f430cd5
to
218362e
Compare
218362e
to
3ccafe4
Compare
@@ -812,6 +817,41 @@ def compute_stmt_name(text: str) -> str: | |||
|
|||
return sql_units | |||
|
|||
def compile_request( | |||
self, | |||
user_schema: s_schema.Schema, |
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.
These should be kwargs
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.
Tracked in #6879
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 good.
Might be worth documenting in the code why we have our own serialization.
Also, almost all of my comments here are requests for more documentation. Please feel free and encouraged to ignore them for now and come back after the series of PRs is in and do them then.
(But please do actually come back and do them.)
Replace
QueryRequestInfo
with a new serializableCompileRequest
that includes:json_parameters
expect_one
inline_typeids
inline_typenames
inline_objectids
protocol_version
output_format
implicit_limit
Source
orNormalizedSource
without the original query stringSource.cache_key()