Replies: 6 comments 20 replies
-
Currently working on the artifacts API and I want to run some initial tests with posting markdown using a real world example. Looking through some of the great expectations docs/code now and one thing I'm wondering is what is the recommended way to turn an expectation suite into markdown? A quick look at the code revealed something like render_multiple_validation_result_pages_markdown but it seems to be deprecated now with a different solution in the warning (which appears to be the contents of the function) and I'm wondering if this is the new recommended approach: validation_results_page_renderer = ValidationResultsPageRenderer(run_info_at_end=run_info_at_end)
rendered_document_content_list = validation_results_page_renderer.render_validation_operator_result(validation_operator_result=validation_operator_result)
return " ".join(DefaultMarkdownPageView().render(rendered_document_content_list)) |
Beta Was this translation helpful? Give feedback.
-
The current Great Expectations checkpoint task looks great! To allow for a bit more flexible configuration of validation, we can potentially allow for the following:
|
Beta Was this translation helpful? Give feedback.
-
Hi @anthonyburdi ! The UI team is picking up the rendering portion of this, where we're building a generic markdown renderer that we can use in a few different places - in this case for rendering task and flow run artifacts. Since we'll be using this for other purposes, I was hoping we could use GitHub-flavored markdown but whatever Great Expectations uses might be a better place to start; do you have documentation or some info we can use as a starting point for this? What flavor of markdown does GE use and is it extendible/configurable? |
Beta Was this translation helpful? Give feedback.
-
Hi all! Just checking in to see if there is anything I can help with. Also, just so I can make sure to be available going forward: what is the timeline that you are working towards for this effort? |
Beta Was this translation helpful? Give feedback.
-
Howdy! Thanks @cicdw for taking the time to chat and demo today! I went over the code again and would suggest a few tweaks to make the input parameters (batch_kwargs+expectation suite, checkpoint, assets_to_validate) mutually exclusive, since a checkpoint name shouldn't be required when batch_kwargs+expectation suite are provided. Is it ok if I submit a PR to get started with this? |
Beta Was this translation helpful? Give feedback.
-
A quick update on this for the GE folks (and anyone else who might be following along!): Artifacts are now released in the UI, meaning reports created with GE Tasks or more general markdown artifacts will now be visible on the Flow and Task Run pages in Cloud (and the latest version of Server). For the GE folks, you can test the integration by signing up for a Cloud account, and creating any flow with a GE task (or tasks). You'll be able to see the output of the GE task on the Let me know if you have any questions! |
Beta Was this translation helpful? Give feedback.
-
In a joint effort with the great folks on the Great Expectations team, we are planning on enhancing our current integration with GE. There are a few aspects to this work that should be very straightforward:
Prior Art
@lauralorenz successfully researched and built an initial integration as a Great Expectations checkpoint task that is being used by a subset of our users. This resulted in a still outstanding set of discussion points / future directions of work:
Because Prefect tasks can also be built on-the-fly using the
@task
decorator, there are likely other GE-specific uses and patterns out there that we might not be aware of.Concrete Goals
In order to improve on the current state of affairs, we want to:
Notes
One of the biggest pain points from our earlier work was the differences in execution paradigms: it seemed GE was emphasizing an interactive workflow on a fixed machine, whereas Prefect is built on a deferred execution model in which Flows can be executed on any number of machines in the future, including a distributed network of machines (#3057 describes this well).
Here is a minimal example of using the current GE task within a Flow: https://github.com/PrefectHQ/prefect/blob/master/examples/task_library/great_expectations/great_expectations_flow.py
This discussion can serve as a landing ground for ideas, action items, updates, etc. If we need to sync up on any sticking points, I'm happy to arrange for that as well.
Last but certainly not least, tagging @spbail for helping triage!
Please comment on this discussion if you are a user using (or planning to use) Great Expectations + Prefect and let us know what you're doing, what's going well and what pain points you may be experiencing!
Beta Was this translation helpful? Give feedback.
All reactions