Skip to content

Commit

Permalink
[enchement](mc)opt maxcompute read arrow skip repeated check of isNull (
Browse files Browse the repository at this point in the history
#45989)

### What problem does this PR solve?
Problem Summary:
Set MaxCompute Arrow `NullCheckingForGet.NULL_CHECKING_ENABLED` false.We
will call isNull() before calling getXXX(), so we can set this parameter
to skip the repeated check of isNull().
  • Loading branch information
hubgeter authored Dec 26, 2024
1 parent b28adb5 commit e53f6a1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@
* MaxComputeJ JniScanner. BE will read data from the scanner object.
*/
public class MaxComputeJniScanner extends JniScanner {
private static final Logger LOG = Logger.getLogger(MaxComputeJniScanner.class);
static {
//Set `NullCheckingForGet.NULL_CHECKING_ENABLED` false.
//We will call isNull() before calling getXXX(), so we can set this parameter
// to skip the repeated check of isNull().
System.setProperty("arrow.enable_null_check_for_get", "false");
}

private static final Logger LOG = Logger.getLogger(MaxComputeJniScanner.class);

private static final String ACCESS_KEY = "access_key";
private static final String SECRET_KEY = "secret_key";
Expand Down

0 comments on commit e53f6a1

Please sign in to comment.