kwai / blaze

Blazing-fast query execution engine speaks Apache Spark language and has Arrow-DataFusion at its core.
Apache License 2.0
1.29k stars 121 forks source link

After modifying the Rust code and recompiling, the changes are not taking effect #507

Closed Au-Miner closed 4 months ago

Au-Miner commented 4 months ago

Describe the bug After modifying the Rust code and recompiling, the changes are not taking effect.

To Reproduce Steps to reproduce the behavior:

  1. Modify the Rust code, for example, modify the following code log:: info! ("initializing JNI bridge"); to log:: info! ("initializing JNI bridge by wql");
  2. Execute cargo clean, mvn cleanrm -rf Cargo.lock, Delete all target files.
  3. Restart compilation and package the jar
    SHIM=spark333
    MODE=release
    mvn package -P"${SHIM}" -P"${MODE}"
  4. We can see that the changes are not taking effect.

Expected behavior The log output should output 'initializing JNI bridge by wql'`

Screenshots

image

Desktop:

richox commented 4 months ago

have you checked the md5 of the packaged jar? it's no need to run cargo clean or mvn clean, you can just rerun mvn package -Pspark333 -Prelease after editing the code.

Au-Miner commented 4 months ago

The problem has been resolved. It turns out that the jar package in my spark333 jar directory was not successfully replaced. Thanks!