File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
tool-box/unification-validator Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ pip install -r requirements.txt
1919
2020``` bash
2121# Validate a single file
22- python validate.py unification .yml
22+ python validate.py sample_unify .yml
2323
24- # Validate multiple files
24+ # Validate multiple files
2525python validate.py * .yml
2626
2727# Enable table schema validation (will prompt for API key)
28- python validate.py --schema unification .yml
28+ python validate.py --schema sample_unify .yml
2929
3030# Use environment variable for API key
3131export TD_API_KEY=your_api_key_here
32- python validate.py --schema unification .yml
32+ python validate.py --schema sample_unify .yml
3333```
3434
3535### Table Schema Validation
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ keys:
1010 valid_regexp : " .*@.*"
1111
1212tables :
13- - database : prod # wei_js
13+ - database : prod
1414 table : pageviews
1515 incremental_columns : [updated_at, user_id]
1616 key_columns :
1717 - {column: td_client_id, key: td_client_id}
18- - database : prod2 # weichen
18+ - database : prod2
1919 table : pageviews
2020 as : brand2_pageviews
2121 key_columns :
@@ -30,7 +30,7 @@ tables:
3030
3131canonical_ids :
3232 - name : browser_id
33- merge_by_keys : [td_client_id, td_global_id]
33+ merge_by_keys : [td_client_id, td_global_id, email ]
3434
3535master_tables :
3636 - name : marketing_master
@@ -42,7 +42,7 @@ master_tables:
4242 - {table: contacts, column: first_name, priority: 1}
4343 - {table: pageviews, column: first_name, priority: 2}
4444
45- - name : first_name
45+ - name : last_name
4646 source_columns :
4747 - {table: contacts, column: last_name}
4848
Original file line number Diff line number Diff line change @@ -773,10 +773,10 @@ def main():
773773 formatter_class = argparse .RawDescriptionHelpFormatter ,
774774 epilog = """
775775Examples:
776- %(prog)s unification .yml
776+ %(prog)s sample_unify .yml
777777 %(prog)s --verbose my_config.yaml
778- %(prog)s --schema unification .yml # Will prompt for API key
779- export TD_API_KEY=your_key && %(prog)s --schema unification .yml # Use env var
778+ %(prog)s --schema sample_unify .yml # Will prompt for API key
779+ export TD_API_KEY=your_key && %(prog)s --schema sample_unify .yml # Use env var
780780 %(prog)s *.yml # Validate multiple files
781781 """
782782 )
You can’t perform that action at this time.
0 commit comments