iceberg 0.12.0-aarch64-linux → 0.12.1-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -31,10 +31,17 @@ catalog.create_namespace("main")
31
31
  Create a table
32
32
 
33
33
  ```ruby
34
- catalog.create_table("events") do |t|
35
- t.bigint "id"
36
- t.float "value"
37
- end
34
+ table =
35
+ catalog.create_table("events") do |t|
36
+ t.bigint "id"
37
+ t.float "value"
38
+ end
39
+ ```
40
+
41
+ Append data
42
+
43
+ ```ruby
44
+ table.append([{"id" => 1, "value" => 3.0}, {"id" => 2, "value" => 4.0}])
38
45
  ```
39
46
 
40
47
  Or with [Polars](https://github.com/ankane/ruby-polars)
@@ -45,6 +52,18 @@ table = catalog.create_table("events", schema: df.schema)
45
52
  table.append(df)
46
53
  ```
47
54
 
55
+ Or with [Nanoarrow](https://github.com/ankane/nanoarrow-ruby)
56
+
57
+ ```ruby
58
+ arr =
59
+ Nanoarrow::Array.new(
60
+ [{"id" => 1, "value" => 3.0}, {"id" => 2, "value" => 4.0}],
61
+ Nanoarrow.struct({"a" => Nanoarrow.int64, "b" => Nanoarrow.string})
62
+ )
63
+ table = catalog.create_table("events", schema: arr.schema)
64
+ table.append(arr)
65
+ ```
66
+
48
67
  Load a table
49
68
 
50
69
  ```ruby
@@ -54,7 +73,11 @@ table = catalog.load_table("events")
54
73
  Query a table
55
74
 
56
75
  ```ruby
76
+ table.to_a
77
+ # or
57
78
  table.to_polars.collect
79
+ # or
80
+ table.scan.to_arrow
58
81
  ```
59
82
 
60
83
  ## Catalog Types
@@ -69,8 +92,6 @@ Iceberg::RestCatalog.new(
69
92
 
70
93
  ### S3 Tables
71
94
 
72
- [unreleased]
73
-
74
95
  ```ruby
75
96
  Iceberg::S3TablesCatalog.new(
76
97
  arn: "arn:aws:s3tables:..."
@@ -79,8 +100,6 @@ Iceberg::S3TablesCatalog.new(
79
100
 
80
101
  ### Glue
81
102
 
82
- [unreleased]
83
-
84
103
  ```ruby
85
104
  Iceberg::GlueCatalog.new(
86
105
  warehouse: "s3://my-bucket"
@@ -228,4 +247,10 @@ bundle exec rake test:rest
228
247
  # SQL catalog
229
248
  createdb iceberg_ruby_test
230
249
  bundle exec rake test:sql
250
+
251
+ # S3 Tables catalog
252
+ bundle exec rake test:s3tables
253
+
254
+ # Glue catalog
255
+ bundle exec rake test:glue
231
256
  ```
Binary file
Binary file
Binary file
@@ -66,7 +66,12 @@ module Iceberg
66
66
  schema = Schema.new
67
67
  end
68
68
 
69
- Table.new(@catalog.create_table(with_namespace(table_name), schema, location, partition_spec, sort_order, properties), @catalog)
69
+ format_version = (properties["format-version"] || 2).to_i
70
+ if properties["format-version"] && (is_a?(MemoryCatalog) || is_a?(SqlCatalog))
71
+ properties = properties.except("format-version")
72
+ end
73
+
74
+ Table.new(@catalog.create_table(with_namespace(table_name), schema, location, partition_spec, sort_order, properties, format_version), @catalog)
70
75
  end
71
76
 
72
77
  def load_table(table_name)
@@ -1,3 +1,3 @@
1
1
  module Iceberg
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iceberg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-22 00:00:00.000000000 Z
11
+ date: 2026-11-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org