airbnb / chronon

Chronon is a data platform for serving for AI/ML applications.
Apache License 2.0
745 stars 52 forks source link

Update metadata exporter directory traverse logic #871

Closed yuli-han closed 4 weeks ago

yuli-han commented 1 month ago

Summary

The current metadata exporter only support to be run under the production folder. This PR updates the directory traverse logic to make it runnable under teams folder or on single file.

Before the change: python3 ~/.local/bin/run.py --mode=metadata-export --input-root-path production

After the change: python3 ~/.local/bin/run.py --mode=metadata-export --input-root-path production python3 ~/.local/bin/run.py --mode=metadata-export --input-root-path production/joins/ml_infra python3 ~/.local/bin/run.py --mode=metadata-export --input-root-path production/joins python3 ~/.local/bin/run.py --mode=metadata-export --input-root-path production/joins/ml_infra/test_config.v1

Will all be supported.

Why / Goal

Test Plan

Reviewers

@hzding621 @SophieYu41