Skip to content
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

[sc-27955] QueryLog.platform needs to be a valid value for Trino #940

Conversation

usefulalgorithm
Copy link
Contributor

@usefulalgorithm usefulalgorithm commented Aug 6, 2024

🤔 Why?

Without it, Metaphor app would fail to ingest the record.

🤓 What?

Added platform=DataPlatform.TRINO when creating QueryLog in trino extractor.

🧪 Tested?

Tested on andy.dev.metaphor.io, made sure generated query log is ingestable.

☑️ Checks

  • My PR contains actual code changes, and I have updated the version number in pyproject.toml.

Copy link
Contributor

@mars-lan mars-lan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised that the JSON schema validator didn't catch this? Or maybe it was only applied to non-query log MCEs?

@usefulalgorithm usefulalgorithm enabled auto-merge (squash) August 6, 2024 13:57
Copy link

github-actions bot commented Aug 6, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11723 10420 89% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
metaphor/trino/extractor.py 93% 🟢
TOTAL 93% 🟢

updated for commit: a0ccdbe by action🐍

@usefulalgorithm usefulalgorithm merged commit a599b4e into main Aug 6, 2024
4 checks passed
@usefulalgorithm usefulalgorithm deleted the tsung-julii/sc-27955/alert-an-error-of-type-programmatic-error branch August 6, 2024 13:58
@usefulalgorithm
Copy link
Contributor Author

Surprised that the JSON schema validator didn't catch this? Or maybe it was only applied to non-query log MCEs?

Yeah query logs aren't validated at the moment :/

@mars-lan
Copy link
Contributor

mars-lan commented Aug 6, 2024

Surprised that the JSON schema validator didn't catch this? Or maybe it was only applied to non-query log MCEs?

Yeah query logs aren't validated at the moment :/

Please add a ticket to track that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants