mattyb149 commented on a change in pull request #3223: NIFI-5903: Allow 
RecordPath to be used in QueryRecord processor. Also…
URL: https://github.com/apache/nifi/pull/3223#discussion_r255657890
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryRecord.java
 ##########
 @@ -480,6 +491,18 @@ public int getRecordsRead() {
         };
     }
 
+    private SchemaPlus createRootSchema(final CalciteConnection 
calciteConnection) {
+        final SchemaPlus rootSchema = calciteConnection.getRootSchema();
+        rootSchema.add("RPATH", 
ScalarFunctionImpl.create(ObjectRecordPath.class, "eval"));
 
 Review comment:
   Is there a way to register this with a case-insensitive name? If I do a 
`select * from flowfile where rpath(x,y)` it says it can't find a function 
`rpath` with the right signature. However if I do `select * from flowfile where 
RPATH(x,y)` it works fine.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to