Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Jan 23, 2025
1 parent 958476b commit 8c5724d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion native/core/src/execution/metrics/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn update_comet_metric(
) -> Result<(), CometError> {
unsafe {
let native_metric = to_native_metric_node(spark_plan);
let jbytes = env.byte_array_from_slice(&*native_metric?.encode_to_vec())?;
let jbytes = env.byte_array_from_slice(&native_metric?.encode_to_vec())?;
jni_call!(env, comet_metric_node(metric_node).set_all_from_bytes(&jbytes) -> ())?;
}
Ok(())
Expand Down
8 changes: 0 additions & 8 deletions native/core/src/jvm_bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ macro_rules! jvalues {
}}
}

/// Macro for create a new JNI string.
macro_rules! jni_new_string {
($env:expr, $value:expr) => {{
$crate::jvm_bridge::jni_map_error!($env, $env.new_string($value))
}};
}

/// Macro for calling a JNI method.
/// The syntax is:
/// jni_call!(env, comet_metric_node(metric_node).add(jname, value) -> ())?;
Expand Down Expand Up @@ -173,7 +166,6 @@ macro_rules! jni_new_global_ref {
pub(crate) use jni_call;
pub(crate) use jni_map_error;
pub(crate) use jni_new_global_ref;
pub(crate) use jni_new_string;
pub(crate) use jni_static_call;
pub(crate) use jvalues;

Expand Down

0 comments on commit 8c5724d

Please sign in to comment.