Skip to content

Commit 766a1bd

Browse files
authored
Merge branch 'main' into tchow/catalog-switch
2 parents 527333f + 4506e2b commit 766a1bd

File tree

4 files changed

+514
-9
lines changed

4 files changed

+514
-9
lines changed

api/python/ai/chronon/cli/compile/parse_teams.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def update_metadata(obj: Any, team_dict: Dict[str, Team]):
9999
if isinstance(obj, Join):
100100
join_namespace = obj.metaData.outputNamespace
101101
# set the metadata for each join part and labelParts
102-
def set_join_part_metadata(join_part_gb, output_namespace):
102+
def set_group_by_metadata(join_part_gb, output_namespace):
103103
if join_part_gb is not None:
104104
if join_part_gb.metaData:
105105
# Only set the outputNamespace if it hasn't been set already
@@ -112,11 +112,11 @@ def set_join_part_metadata(join_part_gb, output_namespace):
112112

113113
if obj.joinParts:
114114
for jp in (obj.joinParts or []):
115-
set_join_part_metadata(jp.groupBy, join_namespace)
115+
set_group_by_metadata(jp.groupBy, join_namespace)
116116

117117
if obj.labelParts:
118118
for lb in (obj.labelParts.labels or []):
119-
set_join_part_metadata(lb, join_namespace)
119+
set_group_by_metadata(lb.groupBy, join_namespace)
120120

121121
if metadata.executionInfo is None:
122122
metadata.executionInfo = ExecutionInfo()

api/python/ai/chronon/repo/gcp.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,15 @@ def run(self):
437437
"""
438438
)
439439
check_call(
440-
f"gcloud dataproc jobs wait {job_id} --region={GcpRunner.get_gcp_region_id()}"
440+
f"gcloud dataproc jobs wait {job_id} --region={GcpRunner.get_gcp_region_id()} "
441+
f"--project={GcpRunner.get_gcp_project_id()}"
441442
)
442443

443444
# Fetch the final job state
444-
jobs_info_str = check_output(f"gcloud dataproc jobs describe {job_id} --region=us-central1 --format=json").decode("utf-8")
445+
jobs_info_str = (check_output(
446+
f"gcloud dataproc jobs describe {job_id} --region={GcpRunner.get_gcp_region_id()} "
447+
f"--project={GcpRunner.get_gcp_project_id()} --format=json")
448+
.decode("utf-8"))
445449
job_info = json.loads(jobs_info_str)
446450
job_state = job_info.get("status", {}).get("state", "")
447451

0 commit comments

Comments
 (0)