Closed leotrs closed 2 months ago
Hello @leotrs. With the launch of Great Expectations Core (GX 1.0), we are closing old issues posted regarding previous versions. Moving forward, we will focus our resources on supporting and improving GX Core (version 1.0 and beyond). If you find that an issue you previously reported still exists in GX Core, we encourage you to resubmit it against the new version. With more resources dedicated to community support, we aim to tackle new issues swiftly. For specific details on what is GX-supported vs community-supported, you can reference our integration and support policy.
To get started on your transition to GX Core, check out the GX Core quickstart (click “Full example code” tab to see a code example).
You can also join our upcoming community meeting on August 28th at 9am PT (noon ET / 4pm UTC) for a comprehensive rundown of everything GX Core, plus Q&A as time permits. Go to https://greatexpectations.io/meetup and click “follow calendar” to follow the GX community calendar.
Thank you for being part of the GX community and thank you for submitting this issue. We're excited about this new chapter and look forward to your feedback on GX Core. 🤗
Describe the bug
EphemeralDataContext
does not load fluent datasources correctly (as part ofproject_config
).To Reproduce Use this code to reproduce:
At the bottom of this note you can see the example
great_expectations.yml
configuration file I am using. The above code shows:As can be seen, the
FileDataContext
recognizes the fluent datasource as a datasource, whereas theEphemeralDataContext
does not, even when its config is extracted from that of theFileDataContext
!Furthermore, I have been able to trace the problem to the
fluent_config
attribute:Output:
The reason for this discrepancy seems to be the
_load_fluent_config
method, which is called as part of the base class's constructor, here.FileDataConfig
overrides it (here), whileEphemeralDataConfig
does not and simply falls back to the parent's class implementation, that isAbstractDataContext._load_fluent_config
. However, this is essentially not implemented and simply returns an empty container (as seen here).This is to say, only the
FileDataConfig
makes the attempt to ingest the fluent datasources, while any other class that does not override_load_fluent_config
will miss these sources.Expected behavior I would expect the
EphemeralDataContext
to process the given configuration in exactly the same way as theFileDataContext
, namely the fluent datasource should be recognized.Environment (please complete the following information):
Additional context Contents of the
great_expectations.yml
configuration file:NOTE: The code snippets above will also output some warnings, related the fact that the configuration file contains dummy names for GCS buckets. These are irrelevant to the present issue. I have tested this code with actual GCS buckets and the warnings go away but the problem persists.