seaduck 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +1 -1
- data/lib/seaduck/catalog.rb +12 -4
- data/lib/seaduck/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b64a598cc38b4d0885c7595b08d80f93375546f28753e02996f72b95c775e44
|
|
4
|
+
data.tar.gz: a1e7c08c795ca7f2c83d96314b6b1b6a1a91ae16642da94804186c2f007f51e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8efcf717fd5bd4f485f47adbd6b84d6d045109f7aa3be92c0024a8131b3f67ba63439106bcd183b5d7c9bee5826b84e828f196e1bfc5a4c2fd4ebaac803cba5f
|
|
7
|
+
data.tar.gz: db56f97abeb3bece55625f791966b6c95677439446c58a68f49bcee1530936e5c382ac75d317316d11216abcb6711146237004278418a217239f540831888ba4
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/lib/seaduck/catalog.rb
CHANGED
|
@@ -14,12 +14,10 @@ module SeaDuck
|
|
|
14
14
|
create_secret(secret_options) if secret_options
|
|
15
15
|
attach_with_options(@catalog, url, {type: "iceberg"}.merge(attach_options))
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
use_namespace(@default_namespace)
|
|
19
|
-
rescue Error
|
|
17
|
+
unless namespace_exists?(@default_namespace)
|
|
20
18
|
create_namespace(@default_namespace, if_not_exists: true)
|
|
21
|
-
use_namespace(@default_namespace)
|
|
22
19
|
end
|
|
20
|
+
use_namespace(@default_namespace)
|
|
23
21
|
execute("DETACH memory")
|
|
24
22
|
end
|
|
25
23
|
|
|
@@ -109,6 +107,16 @@ module SeaDuck
|
|
|
109
107
|
nil
|
|
110
108
|
end
|
|
111
109
|
|
|
110
|
+
# experimental
|
|
111
|
+
def extension_version
|
|
112
|
+
execute("SELECT extension_version FROM duckdb_extensions() WHERE extension_name = ?", ["iceberg"]).first["extension_version"]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# experimental
|
|
116
|
+
def duckdb_version
|
|
117
|
+
execute("SELECT VERSION() AS version").first["version"]
|
|
118
|
+
end
|
|
119
|
+
|
|
112
120
|
# libduckdb does not provide function
|
|
113
121
|
# https://duckdb.org/docs/stable/sql/dialect/keywords_and_identifiers.html
|
|
114
122
|
def quote_identifier(value)
|
data/lib/seaduck/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seaduck
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kane
|
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
57
|
version: '0'
|
|
58
58
|
requirements: []
|
|
59
|
-
rubygems_version:
|
|
59
|
+
rubygems_version: 4.0.3
|
|
60
60
|
specification_version: 4
|
|
61
61
|
summary: Apache Iceberg for Ruby, powered by libduckdb
|
|
62
62
|
test_files: []
|