Add built-in methods for PII detection#486
Merged
Merged
Conversation
Contributor
|
✅ 9/9 passed, 54m20s total Running from acceptance #1730 |
mwojtyczka
requested changes
Jul 28, 2025
mwojtyczka
reviewed
Aug 8, 2025
mwojtyczka
reviewed
Aug 8, 2025
|
|
||
| def test_contains_pii_fails_session_validation(spark): | ||
| """ | ||
| We restrict running `contains_pii` using Databricks Connect. Because tests are run |
Contributor
There was a problem hiding this comment.
would be useful to have info why we cannot use databricks connect
mwojtyczka
reviewed
Aug 8, 2025
mwojtyczka
reviewed
Aug 9, 2025
mwojtyczka
approved these changes
Aug 9, 2025
mwojtyczka
left a comment
Contributor
There was a problem hiding this comment.
LGTM - left minor comment. Will merge after testing.
mwojtyczka
reviewed
Aug 11, 2025
mwojtyczka
requested changes
Aug 11, 2025
mwojtyczka
approved these changes
Aug 12, 2025
mwojtyczka
left a comment
Contributor
There was a problem hiding this comment.
LGTM - will merge after testing
mwojtyczka
reviewed
Aug 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
This PR introduces the
piimodule which users can install to access built-in checks for Personally Identifiable Information (PII). These built-in checks use the Presidio framework.Installation
Users install PII detection capabilities as an extras module with additional dependencies:
Usage
Users can define checks using a new built-in function,
contains_pii.Configuration
Users can configure the underlying model by passing parameters to
contains_pii. This includes NLP entity recognition configuration which can be passed as a Python dictionary or as anNLPEngineConfig. In the future, we can addNLPEngineConfigvalues to support different named entity recognizers.TO-DO:
Linked issues
Resolves #419
Tests