git-hulk commented on code in PR #2205:
URL: https://github.com/apache/kvrocks/pull/2205#discussion_r1543984450


##########
src/search/ir.h:
##########
@@ -22,33 +22,49 @@
 
 #include <fmt/format.h>
 
+#include <initializer_list>
 #include <limits>
 #include <memory>
 #include <optional>
 #include <string>
+#include <type_traits>
 #include <utility>
 #include <variant>
 #include <vector>
 
 #include "fmt/core.h"
+#include "ir_iterator.h"
 #include "string_util.h"
+#include "type_util.h"
 
 // kqir stands for Kvorcks Query Intermediate Representation
 namespace kqir {
 
 struct Node {
   virtual std::string Dump() const = 0;
+  virtual std::string_view Name() const = 0;
+  virtual std::string Content() const { return {}; }

Review Comment:
   oh? I found some of non-leaf nodes(e.g. TagContainExpr/OrExpr) didn't 
implement the `Content`, so I thought the `Content` is only meaningful to the 
leaf node.
   
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to