Skip to content

Commit 9136495

Browse files
committed
refactor(native): rename session_options module to proto_gen
1 parent ab37f87 commit 9136495

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎native/src/csv.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ use jni::JNIEnv;
2424
use prost::Message;
2525

2626
use crate::errors::{try_unwrap_or_throw, JniResult};
27+
use crate::proto_gen::{CsvReadOptionsProto, FileCompressionType as ProtoFileCompressionType};
2728
use crate::runtime;
2829
use crate::schema::decode_optional_schema;
29-
use crate::session_options::{
30-
CsvReadOptionsProto, FileCompressionType as ProtoFileCompressionType,
31-
};
3230

3331
fn with_csv_options<R>(
3432
env: &mut JNIEnv,

‎native/src/lib.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod errors;
2020
mod proto;
2121
mod schema;
2222

23-
pub(crate) mod session_options {
23+
pub(crate) mod proto_gen {
2424
include!(concat!(env!("OUT_DIR"), "/datafusion_java.rs"));
2525
}
2626

@@ -43,9 +43,9 @@ use prost::Message;
4343
use tokio::runtime::Runtime;
4444

4545
use crate::errors::{try_unwrap_or_throw, JniResult};
46+
use crate::proto_gen::ParquetReadOptionsProto;
47+
use crate::proto_gen::SessionOptions;
4648
use crate::schema::decode_optional_schema;
47-
use crate::session_options::ParquetReadOptionsProto;
48-
use crate::session_options::SessionOptions;
4949

5050
pub(crate) fn runtime() -> &'static Runtime {
5151
static RT: OnceLock<Runtime> = OnceLock::new();

0 commit comments

Comments
 (0)