Skip to content

Commit

Permalink
chore(spark): remove Utils.redact (#600)
Browse files Browse the repository at this point in the history
Signed-off-by: acezen <[email protected]>
  • Loading branch information
acezen authored Aug 20, 2024
1 parent 87c1363 commit b5ebedb
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,6 @@ import org.apache.graphar.{

object Utils {

private val REDACTION_REPLACEMENT_TEXT = "*********(redacted)"

/**
* Redact the sensitive information in the given string.
*/
// folk of Utils.redact of spark
def redact(regex: Option[Regex], text: String): String = {
regex match {
case None => text
case Some(r) =>
if (text == null || text.isEmpty) {
text
} else {
r.replaceAllIn(text, REDACTION_REPLACEMENT_TEXT)
}
}
}

def sparkDataType2GraphArTypeName(dataType: DataType): String = {
val typeName = dataType.typeName
val grapharTypeName = typeName match {
Expand Down

0 comments on commit b5ebedb

Please sign in to comment.