Skip to content

Commit 7009cca

Browse files
authored
[IR Compiler] create FfiNameOrId from java side to fix undefined error (#1919)
1 parent 7e826c6 commit 7009cca

File tree

1 file changed

+6
-1
lines changed
  • interactive_engine/executor/ir/compiler/src/main/java/com/alibaba/graphscope/common/jna

1 file changed

+6
-1
lines changed

interactive_engine/executor/ir/compiler/src/main/java/com/alibaba/graphscope/common/jna/IrCoreLibrary.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,12 @@ FfiResult.ByValue appendPatternOperator(
182182

183183
FfiNameOrId.ByValue noneNameOrId();
184184

185-
FfiNameOrId.ByValue cstrAsNameOrId(String name);
185+
default FfiNameOrId.ByValue cstrAsNameOrId(String name) {
186+
FfiNameOrId.ByValue ffiName = new FfiNameOrId.ByValue();
187+
ffiName.opt = FfiNameIdOpt.Name;
188+
ffiName.name = name;
189+
return ffiName;
190+
}
186191

187192
FfiConst.ByValue cstrAsConst(String value);
188193

0 commit comments

Comments
 (0)