-
Notifications
You must be signed in to change notification settings - Fork 228
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
Elide 5 Agg Store: Multiple time grains #1806
Conversation
|
||
/** | ||
* Time Grain class for Week. | ||
*/ | ||
public class Week extends Date { | ||
public class Week extends Time { | ||
|
||
public static final String FORMAT = "yyyy-MM-dd"; |
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.
This can be removed as its not used.
...tastore-aggregation/src/main/java/com/yahoo/elide/datastores/aggregation/timegrains/Day.java
Show resolved
Hide resolved
7202b29
to
e983c6e
Compare
@DimensionFormula("<%#trimColumnReferences definition%><%/trimColumnReferences%>") | ||
<%#ifTypeMatches type "TIME"%> | ||
public com.yahoo.elide.datastores.aggregation.timegrains.<%#getGrainType grain%><%/getGrainType%> get<%#capitalizeFirstLetter name%> <%/capitalizeFirstLetter%>() { |
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.
getGrainType method can be removed from HandlebarsHelper.
@@ -141,6 +142,8 @@ public String getJavaType(Type type) { | |||
return BIGDECIMAL; | |||
case MONEY: | |||
return BIGDECIMAL; | |||
case TIME: | |||
return DATE; |
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.
if we return "Time" instead of "Date", we can remove if-else block for dimension type in table.hbs file.
Otherwise this is unused and can be removed.
License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.