This is an automated email from the ASF dual-hosted git repository.

mblow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git

commit 3a85c92af76ca9819d2ba7659040731e3f97a314
Author: Peeyush Gupta <peeyush.gu...@couchbase.com>
AuthorDate: Fri Jul 11 11:51:56 2025 -0700

    [NO ISSUE][OTH] Adding getters to evaluator factories
    
    - user model changes: no
    - storage format changes: no
    - interface changes: no
    
    Ext-ref: MB-67507
    Change-Id: I9173a33f75dcdae6790ce7bd9670d722f1d7cf50
    Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/20070
    Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
    Reviewed-by: Peeyush Gupta <peeyush.gu...@couchbase.com>
    Reviewed-by: Ali Alsuliman <ali.al.solai...@gmail.com>
    Tested-by: Peeyush Gupta <peeyush.gu...@couchbase.com>
---
 .../functions/CastTypeEvaluatorFactory.java          | 16 ++++++++++++++++
 .../records/FieldAccessByNameEvalFactory.java        | 16 ++++++++++++++++
 .../records/FieldAccessNestedEvalFactory.java        | 20 ++++++++++++++++++++
 3 files changed, 52 insertions(+)

diff --git 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java
 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java
index 073107c1b0..2954268f40 100644
--- 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java
+++ 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java
@@ -47,4 +47,20 @@ public class CastTypeEvaluatorFactory implements 
IScalarEvaluatorFactory {
         IScalarEvaluator argEval = 
recordEvalFactory.createScalarEvaluator(ctx);
         return new CastTypeEvaluator(reqType, inputType, argEval, sourceLoc);
     }
+
+    public IAType getReqType() {
+        return reqType;
+    }
+
+    public IAType getInputType() {
+        return inputType;
+    }
+
+    public SourceLocation getSourceLoc() {
+        return sourceLoc;
+    }
+
+    public IScalarEvaluatorFactory getRecordEvalFactory() {
+        return recordEvalFactory;
+    }
 }
diff --git 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java
 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java
index 7e093f14fa..ce2f2d6377 100644
--- 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java
+++ 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java
@@ -126,4 +126,20 @@ public class FieldAccessByNameEvalFactory implements 
IScalarEvaluatorFactory {
             }
         };
     }
+
+    public IScalarEvaluatorFactory getRecordEvalFactory() {
+        return recordEvalFactory;
+    }
+
+    public IScalarEvaluatorFactory getFldNameEvalFactory() {
+        return fldNameEvalFactory;
+    }
+
+    public SourceLocation getSourceLoc() {
+        return sourceLoc;
+    }
+
+    public FunctionIdentifier getFunID() {
+        return funID;
+    }
 }
diff --git 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java
 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java
index c9bc054bc9..49e5eeb5b3 100644
--- 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java
+++ 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java
@@ -272,4 +272,24 @@ public class FieldAccessNestedEvalFactory implements 
IScalarEvaluatorFactory {
             }
         };
     }
+
+    public IScalarEvaluatorFactory getRecordEvalFactory() {
+        return recordEvalFactory;
+    }
+
+    public ARecordType getRecordType() {
+        return recordType;
+    }
+
+    public List<String> getFieldPath() {
+        return fieldPath;
+    }
+
+    public SourceLocation getSourceLoc() {
+        return sourceLoc;
+    }
+
+    public FunctionIdentifier getFunID() {
+        return funID;
+    }
 }

Reply via email to