module Trino::Client::ModelVersions::V303::StatisticAggregationsDescriptor_Symbol
Public Class Methods
decode(hash)
click to toggle source
# File lib/trino/client/model_versions/303.rb, line 2099 def decode(hash) unless hash.is_a?(Hash) raise TypeError, "Can't convert #{hash.class} to Hash" end obj = allocate obj.send(:initialize_struct, hash["grouping"], hash["tableStatistics"] && Hash[hash["tableStatistics"].to_a.map! {|k,v| [k.downcase.to_sym, v] }], hash["columnStatistics"] && Hash[hash["columnStatistics"].to_a.map! {|k,v| [ColumnStatisticMetadata.decode(k), v] }], ) obj end