Fixes a typo in a setting name.

master
Abhinav Sarkar 6 years ago
parent fc550968f2
commit a89a3013f9
No known key found for this signature in database
GPG Key ID: 7C9166A6F5465AD5
  1. 2
      ringo-app/src/Main.hs
  2. 2
      ringo-app/src/Ringo/ArgParser.hs
  3. 4
      ringo/src/Ringo/Types/Internal.hs

@ -45,7 +45,7 @@ writeFiles outputDir env = do
. foldl (\acc -> Map.union acc . extractDependencies env) Map.empty
$ facts
BS.writeFile (outputDir </> Text.unpack settingDimensionJSONFileName) . encode $
BS.writeFile (outputDir </> Text.unpack settingDimensionsJSONFileName) . encode $
[ tableName table | (_, tabs) <- dimTables, table <- tabs , table `notElem` tables ]
BS.writeFile (outputDir </> Text.unpack settingFactsJSONFileName) . encode $

@ -76,7 +76,7 @@ settingsParser = let Settings {..} = defSettings
settingFactsJSONFileName
"Name of the output facts json file"
<*> minorOption "dimensions-json-file"
settingDimensionJSONFileName
settingDimensionsJSONFileName
"Name of the output dimensions json file"
<*> option auto (long "foreign-key-id-coalesce-val"
<> hidden

@ -372,7 +372,7 @@ data Settings = Settings
-- | Name of the generated JSON file containing the list of name of the generated fact tables
, settingFactsJSONFileName :: !Text
-- | Name of the generated JSON file containing the list of name of the generated dimension tables
, settingDimensionJSONFileName :: !Text
, settingDimensionsJSONFileName :: !Text
-- | Value to coalesce the missing foreign key id column values to in the generated fact tables
, settingForeignKeyIdCoalesceValue :: !Int
-- | Suffix template for names of all the generated tables
@ -394,7 +394,7 @@ defSettings = Settings
, settingFactInfix = "_by_"
, settingDependenciesJSONFileName = "dependencies.json"
, settingFactsJSONFileName = "facts.json"
, settingDimensionJSONFileName = "dimensions.json"
, settingDimensionsJSONFileName = "dimensions.json"
, settingForeignKeyIdCoalesceValue = -1
, settingTableNameSuffixTemplate = "{{suff}}"
}

Loading…
Cancel
Save