-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[ISSUE] Logstream is flooded with _get_default_value called with key "table", but it is not a known field messages #10897
Comments
thanks for reporting this and including the steps for reproduction! this seems to have also been previously reported be another user. I will be sure to share this with the team and follow up with you |
can you try to re-set the |
Hi Adeola, Thanks for your response. Although that approach might fix it, it is a very brute force way to adjust the logging and might have unwanted side effects (e.g. also clearing preconfigured loggers and/or handlers that you'd like to leave untouched). Also, it is not exactly a fix as it just disables the logs, whereas I'd argue it is best to either adjust or remove this logging statement. For your reference, it is found in great_expectations/expectations/expectation.py at line 1211. In any case, based on your suggestion I tried to figure out a more pinpointed way to disable these logs and the following does work: expectations_logger = logging.getLogger("great_expectations.expectations.expectation")
expectations_logger.setLevel(logging.CRITICAL) However, this effectively disables all logs from this module which again is at best a hotfix. So in my opinion it'd be better to adjust or remove this logging statement all together. |
hi @jschra i completely agree with you. I should have also mentioned that your report has been shared with the team and that i'd like you to try that in the meantime until we remove the logging statement. I hope to have an update that this has been properly removed for you soon. Thanks! |
Describe the bug
Whenever I call expectations over my data, my logs get flooded by _get_default_value called with key "table" but it is not a known field (see below). For reference, I am using a pandas in-memory DataFrame (via the pandas data-source) which I am passing to a checkpoint with 1 expectation suite.
To Reproduce
I'll share a toy example which you can run where it happens. You need to ensure logging level is set to INFO
Apart from the code to adjust the root logger, it is the exact same code as you can find here: https://github.com/jschra/joriktech/tree/main/data_testing_gx_1. So you could use that for full reproducibility (by adding the logger snippet), since the data is also stored there.
Logs you'll get when you run it:
Expected behavior
I would expect my logstream (set to INFO) to not be flooded with the same message over-and-over again with
INFO [ 2025-01-29 13:50:08 - expectation._get_default_value : 1161 ] _get_default_value called with key "table", but it is not a known field
Environment (please complete the following information):
Additional context
None needed I think
The text was updated successfully, but these errors were encountered: