Skip to content

Commit

Permalink
Merge branch 'master' into xiaozhen-replace-psycopg2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao-zhen-Liu authored Mar 3, 2025
2 parents 9de0945 + 37431c7 commit bcd5143
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
8 changes: 1 addition & 7 deletions core/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ lazy val WorkflowCore = (project in file("workflow-core"))
.dependsOn(DAO)
.configs(Test)
.dependsOn(DAO % "test->test") // test scope dependency
lazy val WorkflowOperator = (project in file("workflow-operator"))
.dependsOn(WorkflowCore)
.settings(
dependencyOverrides ++= Seq(
"org.apache.commons" % "commons-compress" % "1.23.0", // because of the dependency introduced by iceberg
)
)
lazy val WorkflowOperator = (project in file("workflow-operator")).dependsOn(WorkflowCore)
lazy val WorkflowCompilingService = (project in file("workflow-compiling-service"))
.dependsOn(WorkflowOperator)
.settings(
Expand Down
1 change: 0 additions & 1 deletion core/workflow-operator/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ libraryDependencies ++= Seq(
"com.github.tototoshi" %% "scala-csv" % "1.3.10", // csv parser
"com.konghq" % "unirest-java" % "3.14.2",
"commons-io" % "commons-io" % "2.15.1",
"org.apache.commons" % "commons-compress" % "1.23.0",
"org.tukaani" % "xz" % "1.9",
"com.univocity" % "univocity-parsers" % "2.9.1",
"edu.stanford.nlp" % "stanford-corenlp" % "4.5.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import edu.uci.ics.amber.core.storage.DocumentFactory
import edu.uci.ics.amber.core.tuple.AttributeTypeUtils.parseField
import edu.uci.ics.amber.core.tuple.TupleLike
import edu.uci.ics.amber.util.JSONUtils.objectMapper
import org.apache.commons.compress.archivers.{ArchiveInputStream, ArchiveStreamFactory}
import org.apache.commons.io.IOUtils.toByteArray

import java.io._
import java.net.URI
import java.util.zip.ZipInputStream
import scala.collection.mutable
import scala.jdk.CollectionConverters.IteratorHasAsScala

Expand All @@ -25,9 +24,7 @@ class FileScanSourceOpExec private[scan] (
val fileEntries: Iterator[InputStream] = {
val is = DocumentFactory.openReadonlyDocument(new URI(desc.fileName.get)).asInputStream()
if (desc.extract) {
val inputStream: ArchiveInputStream = new ArchiveStreamFactory().createArchiveInputStream(
new BufferedInputStream(is)
)
val inputStream = new ZipInputStream(new BufferedInputStream(is))
val (it1, it2) = Iterator
.continually(inputStream.getNextEntry)
.takeWhile(_ != null)
Expand Down

0 comments on commit bcd5143

Please sign in to comment.