Class ChCreateFunction


public final class ChCreateFunction extends ChParserAbstract
Parser for ClickHouse CREATE FUNCTION statements. Handles function creation including lambda expressions, function arguments, and body parsing.
  • Constructor Details

    • ChCreateFunction

      public ChCreateFunction(CHParser.Create_function_stmtContext ctx, ChDatabase db, ISettings settings)
      Creates a parser for ClickHouse CREATE FUNCTION statements.
      Parameters:
      ctx - the ANTLR parse tree context for the CREATE FUNCTION statement
      db - the ClickHouse database schema being processed
      settings - parsing configuration settings
  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<ChDatabase>
    • parseObject

      public void parseObject(ChFunction function)
      Parses function details including body expression and arguments. Sets up expression analysis launcher for dependency tracking if enabled.
      Parameters:
      function - the function object to populate with parsed information