Class: Aws::Glue::Types::ColumnStatistics

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb

Overview

Note:

When making an API call, you may pass ColumnStatistics data as a hash:

{
  column_name: "NameString", # required
  column_type: "TypeString", # required
  analyzed_time: Time.now, # required
  statistics_data: { # required
    type: "BOOLEAN", # required, accepts BOOLEAN, DATE, DECIMAL, DOUBLE, LONG, STRING, BINARY
    boolean_column_statistics_data: {
      number_of_trues: 1, # required
      number_of_falses: 1, # required
      number_of_nulls: 1, # required
    },
    date_column_statistics_data: {
      minimum_value: Time.now,
      maximum_value: Time.now,
      number_of_nulls: 1, # required
      number_of_distinct_values: 1, # required
    },
    decimal_column_statistics_data: {
      minimum_value: {
        unscaled_value: "data", # required
        scale: 1, # required
      },
      maximum_value: {
        unscaled_value: "data", # required
        scale: 1, # required
      },
      number_of_nulls: 1, # required
      number_of_distinct_values: 1, # required
    },
    double_column_statistics_data: {
      minimum_value: 1.0,
      maximum_value: 1.0,
      number_of_nulls: 1, # required
      number_of_distinct_values: 1, # required
    },
    long_column_statistics_data: {
      minimum_value: 1,
      maximum_value: 1,
      number_of_nulls: 1, # required
      number_of_distinct_values: 1, # required
    },
    string_column_statistics_data: {
      maximum_length: 1, # required
      average_length: 1.0, # required
      number_of_nulls: 1, # required
      number_of_distinct_values: 1, # required
    },
    binary_column_statistics_data: {
      maximum_length: 1, # required
      average_length: 1.0, # required
      number_of_nulls: 1, # required
    },
  },
}

Represents the generated column-level statistics for a table or partition.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#analyzed_timeTime

The timestamp of when column statistics were generated.

Returns:

  • (Time)


1831
1832
1833
1834
1835
1836
1837
1838
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1831

class ColumnStatistics < Struct.new(
  :column_name,
  :column_type,
  :analyzed_time,
  :statistics_data)
  SENSITIVE = []
  include Aws::Structure
end

#column_nameString

Name of column which statistics belong to.

Returns:

  • (String)


1831
1832
1833
1834
1835
1836
1837
1838
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1831

class ColumnStatistics < Struct.new(
  :column_name,
  :column_type,
  :analyzed_time,
  :statistics_data)
  SENSITIVE = []
  include Aws::Structure
end

#column_typeString

The data type of the column.

Returns:

  • (String)


1831
1832
1833
1834
1835
1836
1837
1838
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1831

class ColumnStatistics < Struct.new(
  :column_name,
  :column_type,
  :analyzed_time,
  :statistics_data)
  SENSITIVE = []
  include Aws::Structure
end

#statistics_dataTypes::ColumnStatisticsData

A ColumnStatisticData object that contains the statistics data values.



1831
1832
1833
1834
1835
1836
1837
1838
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1831

class ColumnStatistics < Struct.new(
  :column_name,
  :column_type,
  :analyzed_time,
  :statistics_data)
  SENSITIVE = []
  include Aws::Structure
end