Open whiphi92 opened 9 months ago
Database name must be lowercase, start from letters and contain only letters, numbers and underscore character.
The database name cannot contain dash.
We want to re-open this issue to get a more intellagent error message in the validator.
Describe the bug I received the following error message during YML validation:
yamale.yamale_error.YamaleError: Error validating data '/home/pwhite/projects/heat-pump-deployment/resstock/project_national/national_upgrades_HPs.yml' with schema '/kfs2/shared-projects/buildstock/envs/buildstock-2023.11.0/lib/python3.11/site-packages/buildstockbatch/schemas/v0.3.yaml' postprocessing.aws.athena.database_name: 'heat-pump-deployment' is not a regex match.
I commented out the database block in the YML and it validated successfully.
For reference, my s3 bucket is
heat-pump-deployment
, which at the beginning of this ResStock run was completely empty and no database had been created yet.To Reproduce Steps to reproduce the behavior:
Expected behavior I expect bsb to automatically make the database during the upload and pass this error. Maybe it works differently? I have never encountered this before.
Logs
The successful validation is after I removed the database block
Platform (please complete the following information):
Additional context None