Class SparkSQLExpression
  
  Spark SQL expression visitor.
 
  
  
    Inheritance
    
    
    
    SparkSQLExpression
   
  
  
  
  Assembly: MetricSetEmitters.dll
  Syntax
  
    public class SparkSQLExpression : ExpressionEmitterBase, IGenericExpressionVisitor<string>, IExpressionVisitor, IGenericVisitor<string>
   
  
  
  Constructors
  
  
  
    View Source
  
  
  SparkSQLExpression(ILogger)
  
  
  Declaration
  
    public SparkSQLExpression(ILogger logger)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | ILogger | 
        logger | 
         | 
      
    
  
  Properties
  
  
  
    View Source
  
  
  AssignmentOperator
  
  
  Declaration
  
    protected override string AssignmentOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  BinaryAggregationToOperator
  
  
  Declaration
  
    protected override IReadOnlyDictionary<BinaryAggregationKind, (string prefix, string separator, string suffix)> BinaryAggregationToOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  BinaryOperationToOperator
  
  
  Declaration
  
    protected override IReadOnlyDictionary<BinaryOperationKind, (string prefix, string infix, string suffix)> BinaryOperationToOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  LiteralFalse
  
  
  Declaration
  
    protected override string LiteralFalse { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  LiteralTrue
  
  
  Declaration
  
    protected override string LiteralTrue { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  Min_Max_Value
  Not any sql key word can used by the MinValue and MaxValue, so use the constant.
 
  
  Declaration
  
    protected override Dictionary<string, string> Min_Max_Value { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  NegativeInfinity
  
  
  Declaration
  
    protected override string NegativeInfinity { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  PositiveInfinity
  
  
  Declaration
  
    protected override string PositiveInfinity { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  TernaryOperationToOperator
  
  
  Declaration
  
    protected override IReadOnlyDictionary<TernaryOperationKind, (string prefix, string leftInfix, string rightInfix, string suffix)> TernaryOperationToOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  TypeKindToParseFromStringOperator
  
  
  Declaration
  
    protected override IReadOnlyDictionary<TypeKind, (string prefix, string suffix)> TypeKindToParseFromStringOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  TypeToName
  
  
  Declaration
  
    protected override IReadOnlyDictionary<TypeKind, string> TypeToName { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  TypeToNull
  
  
  Declaration
  
    protected override IReadOnlyDictionary<TypeKind, string> TypeToNull { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  UnaryAggregationToOperator
  
  
  Declaration
  
    protected override IReadOnlyDictionary<UnaryAggregationKind, (string op, string prefix, string suffix)> UnaryAggregationToOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  UnaryOperationToOperator
  
  
  Declaration
  
    protected override IReadOnlyDictionary<UnaryOperationKind, (string prefix, string suffix)> UnaryOperationToOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  VectorOperationToOperator
  
  
  Declaration
  
    protected override IReadOnlyDictionary<VectorOperationKind, (string prefix, string separator, string suffix)> VectorOperationToOperator { get; }
   
  Property Value
  
  Overrides
  
  
  
    View Source
  
  
  WindowFunctionSyntax
  
  
  Declaration
  
    protected override (string prefix, string separator, string suffix) WindowFunctionSyntax { get; }
   
  Property Value
  
  Overrides
  
  Methods
  
  
  
    View Source
  
  
  Escape(String)
  
  
  Declaration
  
    protected override string Escape(string input)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | String | 
        input | 
         | 
      
    
  
  Returns
  
  Overrides
  
  
  
    View Source
  
  
  Visit(BinaryOperation)
  
  
  Declaration
  
    public override void Visit(BinaryOperation expr)
   
  Parameters
  
  Overrides
  
  
  
    View Source
  
  
  VisitCreateHistogramExpression(UnaryOperation)
  
  
  Declaration
  
    protected override void VisitCreateHistogramExpression(UnaryOperation expr)
   
  Parameters
  
  Overrides
  
  
  
    View Source
  
  
  VisitTypeCastExpression(UnaryOperation)
  Visit TypeCast expression.
 
  
  Declaration
  
    protected override void VisitTypeCastExpression(UnaryOperation expr)
   
  Parameters
  
  Overrides
  
  
  
  
  
    View Source
  
  
  VisitWithTracing(ColumnReference)
  
  
  Declaration
  
    public override void VisitWithTracing(ColumnReference expr)
   
  Parameters
  
  Overrides
  
  
  
    View Source
  
  
  VisitWithTracing(UnaryOperation)
  
  
  Declaration
  
    public override void VisitWithTracing(UnaryOperation expr)
   
  Parameters
  
  Overrides
  
  
  
    View Source
  
  
  VisitWithTracing(VectorOperation)
  Handling vector operations in SparkSQL.
 
  
  Declaration
  
    public override void VisitWithTracing(VectorOperation expr)
   
  Parameters
  
  Overrides
  
  
  
  Implements
  
  
  
  Extension Methods