Skip to content


AstSanitizer utility is used to sanitize a Statement.


Statement sanitize(
  Statement node,
  MetaStore metaStore,
  Boolean lambdaEnabled,
  boolean rowpartitionRowoffsetEnabled)

sanitize creates a DataSourceExtractor to extractDataSources from the given Statement.

sanitize creates a AstSanitizer.RewriterPlugin, an ExpressionRewriterPlugin and a BiFunction to create a ExpressionTreeRewriter.

In the end, sanitize creates a StatementRewriter to rewrite the given Statement.

sanitize is used when: