diff --git a/java/src/main/java/ai/rapids/cudf/ast/CompiledExpression.java b/java/src/main/java/ai/rapids/cudf/ast/CompiledExpression.java index 0949b09cbb0..ea5dc003844 100644 --- a/java/src/main/java/ai/rapids/cudf/ast/CompiledExpression.java +++ b/java/src/main/java/ai/rapids/cudf/ast/CompiledExpression.java @@ -18,12 +18,17 @@ import ai.rapids.cudf.ColumnVector; import ai.rapids.cudf.MemoryCleaner; +import ai.rapids.cudf.NativeDepsLoader; import ai.rapids.cudf.Table; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** This class wraps a native compiled AST and must be closed to avoid native memory leaks. */ public class CompiledExpression implements AutoCloseable { + static { + NativeDepsLoader.loadNativeDeps(); + } + private static final Logger log = LoggerFactory.getLogger(CompiledExpression.class); private static class CompiledExpressionCleaner extends MemoryCleaner.Cleaner {