Module: DeltaLake
- Defined in:
- lib/deltalake.rb,
lib/deltalake/field.rb,
lib/deltalake/table.rb,
lib/deltalake/utils.rb,
lib/deltalake/schema.rb,
lib/deltalake/version.rb,
lib/deltalake/metadata.rb,
lib/deltalake/table_merger.rb,
lib/deltalake/table_alterer.rb,
lib/deltalake/table_optimizer.rb
Defined Under Namespace
Modules: Utils Classes: ArrowArrayStream, CommitFailedError, CommitProperties, DeltaProtocolError, Error, Field, Metadata, PostCommitHookProperties, ProtocolVersions, Schema, SchemaMismatchError, Table, TableAlterer, TableMerger, TableNotFoundError, TableOptimizer, Todo
Constant Summary collapse
- VERSION =
"0.1.7"
Class Method Summary collapse
Class Method Details
.write(table_or_uri, data, partition_by: nil, mode: "error", name: nil, description: nil, configuration: nil, schema_mode: nil, storage_options: nil, predicate: nil, target_file_size: nil, writer_properties: nil, commit_properties: nil, post_commithook_properties: nil) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/deltalake.rb', line 67 def write( table_or_uri, data, partition_by: nil, mode: "error", name: nil, description: nil, configuration: nil, schema_mode: nil, storage_options: nil, predicate: nil, target_file_size: nil, writer_properties: nil, commit_properties: nil, post_commithook_properties: nil ) table, table_uri = try_get_table_and_table_uri(table_or_uri, ) if partition_by.is_a?(String) partition_by = [partition_by] end if !table.nil? && mode == "ignore" return end data = Utils.convert_data(data) write_deltalake_rust( table_uri, data, mode, table&._table, schema_mode, partition_by, predicate, target_file_size, name, description, configuration, , writer_properties, commit_properties, post_commithook_properties ) if table table.update_incremental end end |