click_house-client 0.3.3 → 0.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89b9f94076ca41a87e6fce5920af4b5a1dd7631603caf113e8c7a0e159647d6f
4
- data.tar.gz: fe57a32f688677b39a622d622dab878b83475d8796dd35841c09db039b9a1213
3
+ metadata.gz: 51c9307a496370c57242a77ef7fe76ff4000f6311fa5a947e0f07fa658709cc2
4
+ data.tar.gz: 163474d09cd849c9f9998e0711b8b9fb1a88410d0c7c963f9e03517b5d11dbf7
5
5
  SHA512:
6
- metadata.gz: a293a5a0f8b584232e99edc14d57357a1970bf0fd7df94e63bf1bee147c7a3bcbe4af3a23b6a58f3e8a692fa0d9ba51740b978ea3464180857bf5fb5f04cb6b4
7
- data.tar.gz: 4213d754f77d414d02801dded486c42d0a2e4ac319c49a026f08bd7e6fc6ddecd4435ebc6eb217694495654e04943e481e08bcf7ccabcdb95563b7e2ad3fbdc9
6
+ metadata.gz: c4f96d57865a4ca9571ab35fe33fd4d368530c431cde0bf1dcde12da8e49530a4c7339122cc47515d404c80740633f195c4f788310b9d457b04d5f3ab42f0a99
7
+ data.tar.gz: 916c5ad3dc25d11643ec5e7cd088d2a234a8d4ab7a3ec051698baa2b94ab173c83ced189a2a124f6764a9ef71731646267a57280fad729c5ca46467690ced97c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- click_house-client (0.3.2)
4
+ click_house-client (0.3.4)
5
5
  activerecord (>= 7.0, < 9.0)
6
6
  activesupport (>= 7.0, < 9.0)
7
7
  addressable (~> 2.8)
@@ -133,7 +133,7 @@ CHECKSUMS
133
133
  base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
134
134
  benchmark (0.4.1) sha256=d4ef40037bba27f03b28013e219b950b82bace296549ec15a78016552f8d2cce
135
135
  bigdecimal (3.2.2) sha256=39085f76b495eb39a79ce07af716f3a6829bc35eb44f2195e2753749f2fa5adc
136
- click_house-client (0.3.2)
136
+ click_house-client (0.3.4)
137
137
  concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
138
138
  connection_pool (2.5.3) sha256=cfd74a82b9b094d1ce30c4f1a346da23ee19dc8a062a16a85f58eab1ced4305b
139
139
  diff-lcs (1.5.0) sha256=49b934001c8c6aedb37ba19daec5c634da27b318a7a3c654ae979d6ba1929b67
@@ -60,10 +60,12 @@ module ClickHouse
60
60
  def select(*fields)
61
61
  deep_clone.tap do |new_instance|
62
62
  existing_fields = new_instance.manager.projections.filter_map do |projection|
63
- if projection.is_a?(Arel::Attributes::Attribute)
64
- projection.name.to_s
65
- elsif projection.to_s == '*'
63
+ if projection.respond_to?(:to_s) && projection.to_s == '*'
66
64
  nil
65
+ elsif projection.is_a?(Arel::Attributes::Attribute)
66
+ projection.name.to_s
67
+ elsif projection.is_a?(Arel::Expressions)
68
+ projection
67
69
  end
68
70
  end
69
71
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ClickHouse
4
4
  module Client
5
- VERSION = "0.3.3"
5
+ VERSION = "0.3.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: click_house-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - group::optimize
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-28 00:00:00.000000000 Z
11
+ date: 2025-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord