Skip to content

Commit e444b6f

Browse files
authored
chore: refactor to extract common and jni-bridge as separate crates (apache#3667)
1 parent 885a942 commit e444b6f

32 files changed

+1615
-1470
lines changed

native/Cargo.lock

Lines changed: 31 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

native/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# under the License.
1717

1818
[workspace]
19-
default-members = ["core", "spark-expr", "proto"]
20-
members = ["core", "spark-expr", "proto", "hdfs", "fs-hdfs"]
19+
default-members = ["core", "spark-expr", "common", "proto", "jni-bridge"]
20+
members = ["core", "spark-expr", "common", "proto", "jni-bridge", "hdfs", "fs-hdfs"]
2121
resolver = "2"
2222

2323
[workspace.package]
@@ -43,6 +43,8 @@ datafusion-datasource = { version = "52.3.0" }
4343
datafusion-physical-expr-adapter = { version = "52.3.0" }
4444
datafusion-spark = { version = "52.3.0" }
4545
datafusion-comet-spark-expr = { path = "spark-expr" }
46+
datafusion-comet-common = { path = "common" }
47+
datafusion-comet-jni-bridge = { path = "jni-bridge" }
4648
datafusion-comet-proto = { path = "proto" }
4749
chrono = { version = "0.4", default-features = false, features = ["clock"] }
4850
chrono-tz = { version = "0.10" }

native/common/Cargo.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
[package]
19+
name = "datafusion-comet-common"
20+
description = "Apache DataFusion Comet: common types shared across crates"
21+
version = { workspace = true }
22+
homepage = { workspace = true }
23+
repository = { workspace = true }
24+
authors = { workspace = true }
25+
readme = { workspace = true }
26+
license = { workspace = true }
27+
edition = { workspace = true }
28+
29+
publish = false
30+
31+
[dependencies]
32+
arrow = { workspace = true }
33+
datafusion = { workspace = true }
34+
serde = { version = "1.0", features = ["derive"] }
35+
serde_json = "1.0"
36+
thiserror = { workspace = true }
37+
38+
[lib]
39+
name = "datafusion_comet_common"
40+
path = "src/lib.rs"

0 commit comments

Comments
 (0)