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
[BUGFIX] Data Assistant plotting with zero expectations produced #5934
[BUGFIX] Data Assistant plotting with zero expectations produced #5934
Conversation
…ferredAssetSqlDataConnector" as well as update of "SimpleSqlalchemyDatasource" -- with numerous additional unit tests.
…exsherstinsky/sql_connector_certification-2022_08_23-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…T-200/GREAT-556/alexsherstinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…tinsky/datasource/data_connector/asset/update_to_parity_and_certify_configured_and_inferred_asset_sql_data_connectors_and_simple_sqlalchemy_datasource-2022_08_25-221
…EAT-1218/alexsherstinsky/stats_data_assistant_spark_environments_recommendations-2022_09_01-226
display_chart_dict=widgets.fixed(display_chart_dict), | ||
chart_title=dropdown_selection, | ||
) | ||
if len(chart_titles) > 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block is unchanged except to make sure we have charts to display.
] | ||
else: | ||
df[kwarg_name] = expectation_configuration.kwargs[kwarg_name] | ||
if expectation_configuration is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are in diagnostic mode, if there is no expectation configuration associated with this metric, return None.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion - could we return an empty dataframe instead of None to make the return type consistent?
…of github.com:great-expectations/great_expectations into bugfix/data-assistant-plotting-with-zero-expectations
…of github.com:great-expectations/great_expectations into bugfix/data-assistant-plotting-with-zero-expectations
…of github.com:great-expectations/great_expectations into bugfix/data-assistant-plotting-with-zero-expectations
…of github.com:great-expectations/great_expectations into bugfix/data-assistant-plotting-with-zero-expectations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Two minor non blocking questions/suggestions.
] | ||
else: | ||
df[kwarg_name] = expectation_configuration.kwargs[kwarg_name] | ||
if expectation_configuration is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion - could we return an empty dataframe instead of None to make the return type consistent?
tests/rule_based_profiler/data_assistant/test_onboarding_data_assistant.py
Show resolved
Hide resolved
…of github.com:great-expectations/great_expectations into bugfix/data-assistant-plotting-with-zero-expectations
…red-sql-multi-batch-notebook * develop: [BUGFIX] prefix and suffix asset names are only relevant for InferredSqlAlchemyDataConnector (#5950) Add a dev-tools requirements option (#5944) [BUGFIX] Data Assistant plotting with zero expectations produced (#5934) [MAINTENANCE] Unit tests for `ConfigurationStore` (#5948) [BUGFIX] Don't include abstract Expectation classes in _retrieve_expectations_from_module (#5947) [BUGFIX] Making an all-NULL column handling in RuleBasedProfiler more robust (#5937)
…r-usage-stats-opt * develop: (62 commits) [MAINTENANCE] Bump `Marshmallow` upper bound to work with Airflow operator (#5952) [MAINTENANCE] Add x-fails to flaky Cloud tests for purposes of 0.15.22 (#5964) [BUGFIX] Prevent "division by zero" errors in Rule-Based Profiler calculations when Batch has zero rows (#5960) [FEATURE] Improve slack error condition (#5818) [MAINTENANCE] More unit tests for `Stores` (#5953) [MAINTENANCE] Unit tests for `ValidationGraph` and related classes (#5954) [MAINTENANCE] Run spark and onboarding data assistant test in their own jobs. (#5951) [BUGFIX] prefix and suffix asset names are only relevant for InferredSqlAlchemyDataConnector (#5950) Add a dev-tools requirements option (#5944) [BUGFIX] Data Assistant plotting with zero expectations produced (#5934) [MAINTENANCE] Unit tests for `ConfigurationStore` (#5948) [BUGFIX] Don't include abstract Expectation classes in _retrieve_expectations_from_module (#5947) [BUGFIX] Making an all-NULL column handling in RuleBasedProfiler more robust (#5937) [MAINTENANCE] Run comprehensive tests in a random order (#5942) [MAINTENANCE] Update to OnboardingDataAssistant Notebook - Sql (#5939) [MAINTENANCE] Add missing import for ConfigurationIdentifier (#5943) [MAINTENANCE] Mark tests within `tests/rule_based_profiler` (#5930) [MAINTENANCE] Move `Store` test utils from source code to tests (#5932) [FEATURE] DataAssistants Example Notebook - Spark (#5919) [MAINTENANCE] Reset globals modified in tests (#5936) ...
Changes proposed in this pull request:
Definition of Done