Fixes a typo in a setting name.
parent
207b11bee1
commit
11e7d7d3b2
|
@ -43,7 +43,7 @@ settingsParser = let Settings {..} = defSettings
|
||||||
<> help ("Time unit granularity for fact tables. Possible values: "
|
<> help ("Time unit granularity for fact tables. Possible values: "
|
||||||
++ intercalate ", " timeunits))
|
++ intercalate ", " timeunits))
|
||||||
<*> minorOption "avg-count-col-suffix"
|
<*> minorOption "avg-count-col-suffix"
|
||||||
settingAvgCountColumSuffix
|
settingAvgCountColumnSuffix
|
||||||
"Suffix for average count columns"
|
"Suffix for average count columns"
|
||||||
<*> minorOption "avg-sum-col-suffix"
|
<*> minorOption "avg-sum-col-suffix"
|
||||||
settingAvgSumColumnSuffix
|
settingAvgSumColumnSuffix
|
||||||
|
|
|
@ -45,7 +45,7 @@ extractFactTable fact = do
|
||||||
FactMax {..} -> [ notNullSourceColumnRename factColSourceColumn cName ]
|
FactMax {..} -> [ notNullSourceColumnRename factColSourceColumn cName ]
|
||||||
FactMin {..} -> [ notNullSourceColumnRename factColSourceColumn cName ]
|
FactMin {..} -> [ notNullSourceColumnRename factColSourceColumn cName ]
|
||||||
FactAverage {..} ->
|
FactAverage {..} ->
|
||||||
[ Column (cName <> settingAvgCountColumSuffix) countColType NotNull
|
[ Column (cName <> settingAvgCountColumnSuffix) countColType NotNull
|
||||||
, notNullSourceColumnRename factColSourceColumn (cName <> settingAvgSumColumnSuffix)
|
, notNullSourceColumnRename factColSourceColumn (cName <> settingAvgSumColumnSuffix)
|
||||||
]
|
]
|
||||||
_ -> []
|
_ -> []
|
||||||
|
|
|
@ -162,7 +162,7 @@ factTablePopulateStmts popMode fact = do
|
||||||
FactMax {..} -> [ (cName, app' "max" factColSourceColumn, False) ]
|
FactMax {..} -> [ (cName, app' "max" factColSourceColumn, False) ]
|
||||||
FactMin {..} -> [ (cName, app' "min" factColSourceColumn, False) ]
|
FactMin {..} -> [ (cName, app' "min" factColSourceColumn, False) ]
|
||||||
FactAverage {..} ->
|
FactAverage {..} ->
|
||||||
[ ( cName <> settingAvgCountColumSuffix, app' "count" factColSourceColumn, False )
|
[ ( cName <> settingAvgCountColumnSuffix, app' "count" factColSourceColumn, False )
|
||||||
, ( cName <> settingAvgSumColumnSuffix , app' "sum" factColSourceColumn , False)
|
, ( cName <> settingAvgSumColumnSuffix , app' "sum" factColSourceColumn , False)
|
||||||
]
|
]
|
||||||
_ -> []
|
_ -> []
|
||||||
|
|
|
@ -121,7 +121,7 @@ data Settings = Settings
|
||||||
{ settingDimPrefix :: !Text
|
{ settingDimPrefix :: !Text
|
||||||
, settingFactPrefix :: !Text
|
, settingFactPrefix :: !Text
|
||||||
, settingTimeUnit :: !TimeUnit
|
, settingTimeUnit :: !TimeUnit
|
||||||
, settingAvgCountColumSuffix :: !Text
|
, settingAvgCountColumnSuffix :: !Text
|
||||||
, settingAvgSumColumnSuffix :: !Text
|
, settingAvgSumColumnSuffix :: !Text
|
||||||
, settingDimTableIdColumnName :: !Text
|
, settingDimTableIdColumnName :: !Text
|
||||||
, settingDimTableIdColumnType :: !Text
|
, settingDimTableIdColumnType :: !Text
|
||||||
|
@ -140,7 +140,7 @@ defSettings = Settings
|
||||||
{ settingDimPrefix = "dim_"
|
{ settingDimPrefix = "dim_"
|
||||||
, settingFactPrefix = "fact_"
|
, settingFactPrefix = "fact_"
|
||||||
, settingTimeUnit = Minute
|
, settingTimeUnit = Minute
|
||||||
, settingAvgCountColumSuffix = "_count"
|
, settingAvgCountColumnSuffix = "_count"
|
||||||
, settingAvgSumColumnSuffix = "_sum"
|
, settingAvgSumColumnSuffix = "_sum"
|
||||||
, settingDimTableIdColumnName = "id"
|
, settingDimTableIdColumnName = "id"
|
||||||
, settingDimTableIdColumnType = "serial"
|
, settingDimTableIdColumnType = "serial"
|
||||||
|
|
Loading…
Reference in New Issue