CreateQuery testNullableStatesAgg (children 3)
 Identifier testNullableStatesAgg
 Columns definition (children 1)
  ExpressionList (children 38)
   ColumnDeclaration ts (children 1)
    DataType DateTime
   ColumnDeclaration id (children 1)
    DataType String
   ColumnDeclaration stringMin (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType String
   ColumnDeclaration stringMax (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType String
   ColumnDeclaration float64Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float64
   ColumnDeclaration float64Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float64
   ColumnDeclaration float64Avg (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier avg
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float64
   ColumnDeclaration float64Sum (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier sum
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float64
   ColumnDeclaration float32Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float32
   ColumnDeclaration float32Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float32
   ColumnDeclaration float32Avg (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier avg
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float32
   ColumnDeclaration float32Sum (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier sum
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Float32
   ColumnDeclaration decimal325Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Decimal32 (children 1)
         ExpressionList (children 1)
          Literal UInt64_5
   ColumnDeclaration decimal325Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Decimal32 (children 1)
         ExpressionList (children 1)
          Literal UInt64_5
   ColumnDeclaration decimal325Avg (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier avg
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Decimal32 (children 1)
         ExpressionList (children 1)
          Literal UInt64_5
   ColumnDeclaration decimal325Sum (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier sum
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Decimal32 (children 1)
         ExpressionList (children 1)
          Literal UInt64_5
   ColumnDeclaration dateMin (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Date
   ColumnDeclaration dateMax (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Date
   ColumnDeclaration datetimeMin (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType DateTime
   ColumnDeclaration datetimeMax (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType DateTime
   ColumnDeclaration datetime64Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType datetime64
   ColumnDeclaration datetime64Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType datetime64
   ColumnDeclaration int64Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int64
   ColumnDeclaration int64Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int64
   ColumnDeclaration int64Avg (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier avg
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int64
   ColumnDeclaration int64Sum (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier sum
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int64
   ColumnDeclaration int32Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int32
   ColumnDeclaration int32Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int32
   ColumnDeclaration int32Avg (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier avg
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int32
   ColumnDeclaration int32Sum (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier sum
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int32
   ColumnDeclaration int16Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int16
   ColumnDeclaration int16Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int16
   ColumnDeclaration int16Avg (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier avg
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int16
   ColumnDeclaration int16Sum (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier sum
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int16
   ColumnDeclaration int8Min (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier min
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int8
   ColumnDeclaration int8Max (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier max
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int8
   ColumnDeclaration int8Avg (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier avg
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int8
   ColumnDeclaration int8Sum (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier sum
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType Int8
 Storage definition (children 3)
  Function AggregatingMergeTree (children 1)
   ExpressionList
  Function toStartOfDay (children 1)
   ExpressionList (children 1)
    Identifier ts
  Identifier id
