Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kernel] Implement basic CRC writer #4073

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Next Next commit
update tests
huan233usc committed Jan 24, 2025
commit 6f0119c8dbbccff2ed3afcc7e77abe4d1284a339
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ import io.delta.kernel.internal.fs.Path
import io.delta.kernel.internal.snapshot.SnapshotHint
import io.delta.kernel.internal.util.InternalUtils.singletonStringColumnVector
import io.delta.kernel.internal.util.VectorUtils
import io.delta.kernel.internal.util.VectorUtils.{stringArrayValue, stringStringMapValue}
import io.delta.kernel.test.{BaseMockJsonHandler, MockEngineUtils}
import io.delta.kernel.types.StructType
import io.delta.kernel.utils.CloseableIterator
@@ -124,22 +125,13 @@ class ChecksumReadWriteSuite extends AnyFunSuite with MockEngineUtils {
Optional.of("name"),
Optional.of("description"),
new Format("parquet", Collections.emptyMap()),
"sss",
"schemaString",
new StructType(),
new ArrayValue() { // partitionColumns
override def getSize = 1

override def getElements: ColumnVector = singletonStringColumnVector("c3")
},
stringArrayValue(util.Arrays.asList("c3")),
Optional.of(123),
new MapValue() { // conf
override def getSize = 1

override def getKeys: ColumnVector = singletonStringColumnVector("delta.appendOnly")

override def getValues: ColumnVector =
singletonStringColumnVector("true")
}
stringStringMapValue(new util.HashMap[String, String]() {
put("delta.appendOnly", "true")
})
)
}