Class: FluentPluginS3Arrow::Schemas::AWSGlue

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent-plugin-s3-arrow/schemas/aws_glue.rb

Defined Under Namespace

Classes: ConvertError, Error, Field

Instance Method Summary collapse

Constructor Details

#initialize(table_name, **options) ⇒ AWSGlue

Returns a new instance of AWSGlue.



10
11
12
13
14
15
# File 'lib/fluent-plugin-s3-arrow/schemas/aws_glue.rb', line 10

def initialize(table_name, **options)
  @table_name = table_name
  @database_name = options.delete(:database_name) || "default"
  @catalog_id = options.delete(:catalog_id)
  @client = Aws::Glue::Client.new(options)
end

Instance Method Details

#to_arrowObject



17
18
19
20
# File 'lib/fluent-plugin-s3-arrow/schemas/aws_glue.rb', line 17

def to_arrow
  glue_schema = fetch_glue_schema
  convert_to_arrow_schema(glue_schema)
end