Skip to content

Commit

Permalink
add debug info
Browse files Browse the repository at this point in the history
Signed-off-by: zenghua <[email protected]>
  • Loading branch information
zenghua committed Aug 1, 2024
1 parent 81024d0 commit 9b64b0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,9 @@ private void recreateNativeReader() throws IOException {
close();
NativeIOReader reader = new NativeIOReader();
GlutenUtils.setArrowAllocator(reader);
System.out.println(filePathList);
for (String path : filePathList) {
reader.addFile(path);
}
System.out.println(primaryKeys);
System.out.println(filter);
if (primaryKeys != null) {
reader.setPrimaryKeys(primaryKeys);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package org.apache.spark.sql.lakesoul.benchmark

import com.dmetasoul.lakesoul.spark.ParametersTool
import com.dmetasoul.lakesoul.tables.LakeSoulTable
import org.apache.spark.sql.{DataFrame, SparkSession}
import org.apache.spark.sql.functions.col
import org.apache.spark.sql.internal.SQLConf
Expand Down Expand Up @@ -161,6 +162,7 @@ object Benchmark {
println(printLine + table + " result: " + result + printLine)
println(s"jdbcDF.schema ${jdbcDF.schema}")
println(s"lakesoulDF.schema ${lakesoulDF.schema}")
println(lakesoulDF.queryExecution)
jdbcDF.join(lakesoulDF, Seq("id"), "left_outer").show()
// println("*************diff1**************")
// spark.createDataFrame(diff1, lakesoulDF.schema).show()
Expand Down

0 comments on commit 9b64b0c

Please sign in to comment.