-
Notifications
You must be signed in to change notification settings - Fork 83
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?
Changes from 3 commits
eaacfa6
40b6cb2
a014b6e
32d559e
37293df
6263706
cb4325b
796ef96
f218b23
b1d4ee9
2ab7659
238c781
8edfd27
e903683
0bdc4fc
7987931
2b26d45
7b62a43
aeeb5ec
9180d23
ee81672
29a3f28
aa16010
ff41cc9
aa25f9f
3efe8cd
a3bece6
897d18c
a52d7d0
9c446ec
ca14309
dfb9226
7ca4dfc
ab994bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,6 +98,7 @@ object Extensions { | |
| def cleanName: String = metaData.name.sanitize | ||
|
|
||
| def outputTable = s"${metaData.outputNamespace}.${metaData.cleanName}" | ||
| def incOutputTable = s"${metaData.outputNamespace}.${metaData.cleanName}_inc" | ||
| def outputLabelTable = s"${metaData.outputNamespace}.${metaData.cleanName}_labels" | ||
| def outputFinalView = s"${metaData.outputNamespace}.${metaData.cleanName}_labeled" | ||
| def outputLatestLabelView = s"${metaData.outputNamespace}.${metaData.cleanName}_labeled_latest" | ||
|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. should we still keep the There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
|
||
| } | ||
|
|
||
|
|
||
| implicit class AggregationOps(aggregation: Aggregation) { | ||
|
|
||
| // one agg part per bucket per window | ||
|
|
||
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
incrementalin the code and we can keepincas the suffix for the table so the table names are not getting too long. What do you think?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.