This is an automated email from the ASF dual-hosted git repository.
weibin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push:
new b5ebedbb chore(spark): remove `Utils.redact` (#600)
b5ebedbb is described below
commit b5ebedbb44b65b1fd5dc4aedd031636b30b863eb
Author: Weibin Zeng <[email protected]>
AuthorDate: Tue Aug 20 19:29:56 2024 +0800
chore(spark): remove `Utils.redact` (#600)
Signed-off-by: acezen <[email protected]>
---
.../src/main/scala/org/apache/graphar/util/Utils.scala | 18 ------------------
1 file changed, 18 deletions(-)
diff --git
a/maven-projects/spark/graphar/src/main/scala/org/apache/graphar/util/Utils.scala
b/maven-projects/spark/graphar/src/main/scala/org/apache/graphar/util/Utils.scala
index a85f7ee5..7b67595d 100644
---
a/maven-projects/spark/graphar/src/main/scala/org/apache/graphar/util/Utils.scala
+++
b/maven-projects/spark/graphar/src/main/scala/org/apache/graphar/util/Utils.scala
@@ -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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]