File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,13 @@ export class BaseTimeDimension extends BaseFilter {
7070 return super . aliasName ( ) ;
7171 }
7272
73- // @ts -ignore
74- public unescapedAliasName ( granularity : string ) {
75- const actualGranularity = granularity || this . granularityObj ?. granularity || 'day' ;
73+ public unescapedAliasName ( granularity ?: string ) {
74+ const actualGranularity = granularity ?? this . granularityObj ?. granularity ?? 'day' ;
7675
77- return `${ this . query . aliasName ( this . dimension ) } _${ actualGranularity } ` ; // TODO date here for rollups
76+ const fullName = `${ this . dimension } .${ actualGranularity } ` ;
77+
78+ // TODO date here for rollups
79+ return this . query . aliasName ( fullName ) ;
7880 }
7981
8082 public dateSeriesAliasName ( ) {
You can’t perform that action at this time.
0 commit comments