branch-2.1: [enchement](mc)opt maxcompute read arrow skip repeated check of isNull #45989 (#46023)

Cherry-picked from #45989

Co-authored-by: daidai <changyuwei@selectdb.com>
This commit is contained in:
github-actions[bot]
2024-12-26 20:54:19 +08:00
committed by GitHub
parent 7d5e8a13bb
commit 6f8d2bfa88

View File

@ -52,8 +52,14 @@ import java.util.Objects;
* 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";