8000 Modify maxcompute data type for float by vinoth-gojek · Pull Request #638 · caraml-dev/merlin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Modify maxcompute data type for float #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/observation-publisher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ RUN rm requirements.txt
WORKDIR /mlobs
COPY observation-publisher ./observation-publisher
WORKDIR /mlobs/observation-publisher
ENV PYTHONUNBUFFERED 1
ENTRYPOINT ["python", "-m", "publisher"]
3 changes: 1 addition & 2 deletions python/observation-publisher/publisher/observation_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def create_or_update_table(self) -> Table:
def schema_fields(self) -> List[Column]:
value_type_to_maxcompute_type = {
ValueType.INT64: "BIGINT",
ValueType.FLOAT64: "FLOAT",
ValueType.FLOAT64: "DOUBLE",
ValueType.BOOLEAN: "BOOLEAN",
ValueType.STRING: "STRING",
}
Expand Down Expand Up @@ -542,7 +542,6 @@ def write(self, dataframe: pd.DataFrame):
f"Errors when inserting rows to MaxCompute, retrying attempt {i}/{self.retry.retry_attempts}"
)
time.sleep(self.retry.retry_interval_seconds)

print(f"Failed to write to MaxCompute after {self.retry.retry_attempts} attempts")


Expand Down
Loading
0