Skip to content

Commit

Permalink
Merge pull request #14 from mamo3gr/fix-default-schema-file-name
Browse files Browse the repository at this point in the history
Fix default schema file name
  • Loading branch information
kitagry authored Jun 27, 2023
2 parents 7f6a7c5 + 8a2503d commit 816f660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ print(df)
unit test example is [here](https://github.com/gyuta/bqemulatormanager/blob/main/examples/testing.py).

### automatically detect schema
When called `Manager.load`, `SchemaManager` search correspond table schema from `schema_path` (default is `master_schema.yaml`).
When called `Manager.load`, `SchemaManager` search correspond table schema from `schema_path` (default is `bqem_master_schema.yaml`).

If schema definition canot be found, `SchemaManager` request it from BigQuery in production environmant and update master schema file.
If schema definition cannot be found, `SchemaManager` request it from BigQuery in production environment and update master schema file.
2 changes: 1 addition & 1 deletion bqemulatormanager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(
project: str = "test",
port: int = 9050,
grpc_port: int = 9060,
schema_path: str = "master_schema.yaml",
schema_path: str = "bqem_master_schema.yaml",
launch_emulator: bool = True,
debug_mode: bool = False,
max_pool: int = 20,
Expand Down

0 comments on commit 816f660

Please sign in to comment.