Skip to content

Commit

Permalink
Fix partition format in example hocon (close #247)
Browse files Browse the repository at this point in the history
  • Loading branch information
istreeter committed Dec 21, 2021
1 parent 3015f7a commit 5fffb6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/config.hocon.sample
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"path": "s3://acme-snowplow-output/raw/",

# Partitioning format; Optional
# Valid substitutions are {vendor}, {name}, {format}, {model} for self-describing jsons
# Valid substitutions are {vendor}, {schema}, {format}, {model} for self-describing jsons
# and {yy}, {mm}, {dd}, {hh} for year, month, day, hour
partitionFormat: "{vendor}.{name}/model={model}/date={yy}-{mm}-{dd}"
partitionFormat: "{vendor}.{schema}/model={model}/date={yy}-{mm}-{dd}"

# Prefix for all file names; Optional
"filenamePrefix": "pre",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ConfigSpec extends Specification {
Config.Input("acme-s3-loader", "raw-events", InitialPosition.Latest, None, 10),
Config.Output(
S3Output("s3://acme-snowplow-output/raw/",
Some("{vendor}.{name}/model={model}/date={yy}-{mm}-{dd}"),
Some("{vendor}.{schema}/model={model}/date={yy}-{mm}-{dd}"),
Some("pre"),
Compression.Gzip,
2000,
Expand Down

0 comments on commit 5fffb6a

Please sign in to comment.