baibaichen commented on code in PR #8400:
URL: https://github.com/apache/incubator-gluten/pull/8400#discussion_r1903726735


##########
cpp-ch/local-engine/local_engine_jni.cpp:
##########
@@ -1039,7 +1039,7 @@ JNIEXPORT jobject 
Java_org_apache_spark_sql_execution_datasources_CHDatasourceJn
     local_engine::BlockStripes bs = 
local_engine::BlockStripeSplitter::split(*block, partition_col_indice_vec, 
hasBucket, reserve_);
 
     auto * addresses = env->NewLongArray(bs.block_addresses.size());
-    env->SetLongArrayRegion(addresses, 0, bs.block_addresses.size(), 
bs.block_addresses.data());
+    env->SetLongArrayRegion(addresses, 0, bs.block_addresses.size(), (const 
jlong *)bs.block_addresses.data());

Review Comment:
   using static_cast



##########
cpp-ch/local-engine/Parser/CHColumnToSparkRow.cpp:
##########
@@ -964,10 +964,10 @@ jobject create(JNIEnv * env, const SparkRowInfo & 
spark_row_info)
 {
     auto * offsets_arr = env->NewLongArray(spark_row_info.getNumRows());
     const auto * offsets_src = spark_row_info.getOffsets().data();
-    env->SetLongArrayRegion(offsets_arr, 0, spark_row_info.getNumRows(), 
offsets_src);
+    env->SetLongArrayRegion(offsets_arr, 0, spark_row_info.getNumRows(), 
(const jlong *)offsets_src);

Review Comment:
   static_cast



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to