Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dev/dependencyList
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ arrow-memory-netty/16.0.0//arrow-memory-netty-16.0.0.jar
arrow-vector/16.0.0//arrow-vector-16.0.0.jar
checker-qual/3.42.0//checker-qual-3.42.0.jar
classgraph/4.8.138//classgraph-4.8.138.jar
commons-codec/1.15//commons-codec-1.15.jar
commons-lang3/3.13.0//commons-lang3-3.13.0.jar
error_prone_annotations/2.23.0//error_prone_annotations-2.23.0.jar
failsafe/3.3.2//failsafe-3.3.2.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@

package org.apache.kyuubi.plugin.spark.authz.ranger.datamasking

import java.nio.charset.StandardCharsets
import java.sql.Timestamp

import scala.util.Try

// scalastyle:off
import com.google.common.hash.Hashing
import org.apache.commons.codec.digest.DigestUtils.md5Hex
import org.apache.spark.sql.{Row, SparkSessionExtensions}
import org.scalatest.BeforeAndAfterAll
// scalastyle:off
import org.scalatest.funsuite.AnyFunSuite

import org.apache.kyuubi.plugin.spark.authz.RangerTestUsers._
Expand Down Expand Up @@ -93,8 +95,12 @@ trait DataMaskingTestBase extends AnyFunSuite with SparkSessionProvider with Bef
}

test("simple query with a user has mask rules") {
val result =
Seq(Row(md5Hex("1"), "xxxxx", "worlx", Timestamp.valueOf("2018-01-01 00:00:00"), "Xorld"))
val result = Seq(Row(
Hashing.md5().hashString("1", StandardCharsets.UTF_8).toString,
"xxxxx",
"worlx",
Timestamp.valueOf("2018-01-01 00:00:00"),
"Xorld"))
checkAnswer(
bob,
"SELECT value1, value2, value3, value4, value5 FROM default.src " +
Expand Down
5 changes: 0 additions & 5 deletions kyuubi-hive-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>

<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
7 changes: 0 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
<bouncycastle.version>1.78</bouncycastle.version>
<codahale.metrics.version>4.2.26</codahale.metrics.version>
<commons-cli.version>1.5.0</commons-cli.version>
<commons-codec.version>1.15</commons-codec.version>
<commons-collections.version>3.2.2</commons-collections.version>
<commons-io.version>2.16.1</commons-io.version>
<commons-lang3.version>3.13.0</commons-lang3.version>
Expand Down Expand Up @@ -429,12 +428,6 @@
<version>${commons-cli.version}</version>
</dependency>

<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>

<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
Expand Down
Loading