-
Notifications
You must be signed in to change notification settings - Fork 71
Write daily IRs for incremental aggregation #998
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
base: main
Are you sure you want to change the base?
Conversation
@@ -176,8 +177,13 @@ object Extensions { | |||
|
|||
def outputColumnName = | |||
s"${aggregationPart.inputColumn}_$opSuffix${aggregationPart.window.suffix}${bucketSuffix}" | |||
|
|||
def incOutputColumnName = | |||
s"${aggregationPart.inputColumn}_$opSuffix${bucketSuffix}" |
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.
should we still keep the aggregationPart.window.suffix
? Otherwise, how do we reconstruct the final output 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.
@pengyu-hou not sure I get it. I can not use the window.suffix right as the intermediate incremental is daily aggregation.
@@ -70,6 +70,11 @@ class RowAggregator(val inputSchema: Seq[(String, DataType)], val aggregationPar | |||
.toArray | |||
.zip(columnAggregators.map(_.irType)) | |||
|
|||
val incSchema = aggregationParts |
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.
I am thinking that we should use a full incremental
in the code and we can keep inc
as the suffix for the table so the table names are not getting too long. What do you think?
val incSchema = aggregationParts | |
val incrementalSchema = aggregationParts |
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.
yes. good to use full name.
implicit val tableUtils = TableUtils(spark) | ||
|
||
val namespace = "test_incremental_group_by" | ||
|
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.
tableUtils.createDatabase(namespace) |
Summary
Why / Goal
Test Plan
Checklist
Reviewers