-
Notifications
You must be signed in to change notification settings - Fork 333
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
feat!: Bump datafusion, prost, hyper, tonic, tower, axum #5417
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
* remove handle_error handler * refactor timeout layer * serve axum
* boxed() * use TokioIo
* feat: exclude script crate * chore: simplify feature * feat: remove the script crate * chore: remove python feature and some comments * chore: fix warning
let runtime = if cfg!(debug_assertions) { | ||
// Set the stack size to 8MB for the thread so it wouldn't overflow on large stack usage in debug mode | ||
// This is necessary to avoid stack overflow while running sqlness. | ||
// https://github.com/rust-lang/rust/issues/34283 | ||
builder | ||
.thread_stack_size(8 * 1024 * 1024) | ||
.build() | ||
.context(BuildRuntimeSnafu)? | ||
} else { | ||
builder.build().context(BuildRuntimeSnafu)? | ||
}; |
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.
wondering who is overflowing
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 can check this backtrace. Maybe the LogicalPlan
consumes the stack a lot and the rewrite()
call finally overflow.
sqlness-overflow.txt
Co-authored-by: jeremyhi <[email protected]>
src/flow/src/transform.rs
Outdated
@@ -179,6 +187,7 @@ mod test { | |||
|
|||
pub fn create_test_ctx() -> FlownodeContext { | |||
let mut tri_map = IdToNameMap::new(); | |||
// deprecated: use `numbers_with_ts` instead since this table has no timestamp column |
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.
Leave a fixme here @discord9 , don't forget to update the tests.
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.
Leave a fixme here @discord9 , don't forget to update the tests.
will fix this in a separate PR once this get merged since it' unrelated to update datafusion
@@ -195,6 +195,37 @@ impl ScalarCalculate { | |||
} | |||
} | |||
|
|||
impl PartialOrd for ScalarCalculate { |
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.
NonBlocking: maybe we can add some macros to help implement PartialOrd
for plans.
Signed-off-by: Ruihang Xia <[email protected]>
de9e55b
to
30a78a9
Compare
tint TINYINT, | ||
sint SMALLINT, | ||
i INT, | ||
bint INT64, | ||
bint BIGINT, | ||
v VARCHAR, | ||
f FLOAT, | ||
d FLOAT64, | ||
d DOUBLE, |
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 if we have some document about these that need to be updated
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 don't have to do that. This is the expected behavior implemented in #2331
We forgot to fix this when we updated the sqlparser. You can find out some types have alias but some do not in this test. Now this PR fixes this and removes the TODO. cc @killme2008
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.
rustc may panic... I'll retry that test. |
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.
Rest LGTM
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
This PR bumps a lot of crates:
There are too many changes due to many breaking changes in these crates. Here are some of them:
SessionStateBuilder
to buildSessionState
HandleErrorLayer
.From<arrow interval>
for interval types.new_with_count()
toRecordBatch
to allow constructing an emptyRecordBatch
that only contains row count.DFLogicalSubstraitConvertor
doesn't require catalog list now.Some(Vec::new())
projection in mito.min_bytes_opt
,max_bytes_opt
,min_opt
,max_opt
.ColumnSchema
will ignore the metadata of time index if it doesn't have timestamp type. (For SQLCAST
).DfContextProviderAdapter
implements all missing methods.SortExpr
and the new function API of datafusion.Bytes
to replaceRawBody
in axum handlers.Nullary
signature nowBreaking changes
id
andtag
are SQL keywords nowNotes
DatafusionQueryEngine::optimize_physical_plan()
doesn't optimize the physical plan now, as the planner already optimize it.PR Checklist
Please convert it to a draft if some of the following conditions are not met.