Class: Polars::Catalog::Unity::ColumnInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/polars/catalog/unity/column_info.rb,
lib/polars/catalog/unity/column_info.rb

Overview

Information for a column within a catalog table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commentObject

Returns the value of attribute comment

Returns:

  • (Object)

    the current value of comment



5
6
7
# File 'lib/polars/catalog/unity/column_info.rb', line 5

def comment
  @comment
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/polars/catalog/unity/column_info.rb', line 5

def name
  @name
end

#partition_indexObject

Returns the value of attribute partition_index

Returns:

  • (Object)

    the current value of partition_index



5
6
7
# File 'lib/polars/catalog/unity/column_info.rb', line 5

def partition_index
  @partition_index
end

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



5
6
7
# File 'lib/polars/catalog/unity/column_info.rb', line 5

def position
  @position
end

#type_jsonObject

Returns the value of attribute type_json

Returns:

  • (Object)

    the current value of type_json



5
6
7
# File 'lib/polars/catalog/unity/column_info.rb', line 5

def type_json
  @type_json
end

#type_nameObject

Returns the value of attribute type_name

Returns:

  • (Object)

    the current value of type_name



5
6
7
# File 'lib/polars/catalog/unity/column_info.rb', line 5

def type_name
  @type_name
end

#type_textObject

Returns the value of attribute type_text

Returns:

  • (Object)

    the current value of type_text



5
6
7
# File 'lib/polars/catalog/unity/column_info.rb', line 5

def type_text
  @type_text
end

Instance Method Details

#get_polars_dtypeObject

Note:

This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.

Get the native polars datatype of this column.

Returns:



25
26
27
# File 'lib/polars/catalog/unity/column_info.rb', line 25

def get_polars_dtype
  RbCatalogClient.type_json_to_polars_type(type_json)
end