clickhouse-activerecord 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 526a938e8ee69d1c9ed717405c965e7995d497f5
4
- data.tar.gz: 0e073d0606e1dd2c0f96504d571e2fcdbb2df041
3
+ metadata.gz: 4bb5a0ee2a13b7b01492d641e595a8ffcba8594f
4
+ data.tar.gz: 40904825faab271ad4efa472eae5e06accaf9497
5
5
  SHA512:
6
- metadata.gz: 17718b1dbe7a43fa085fbd87b8f81640eaaae219217d2256bfd6743e61b5b1990fc2a93cb65dc3da007c7970a67e5f17a48f496aeabb9bbf8e5818be284ce6cd
7
- data.tar.gz: 202af70214fab7c2816f9b45dad1557d1fba71087ab6940e8919c9995fd2312573bbea554473aab429f41ddf68d12cef21f7a49638f7ed873df97e7cd26de65f
6
+ metadata.gz: 5372e99ee34b17f922afe74fba32ddb6146406e818c7df721510e303b32a1f2aa6aeca0830aec99801f79e37beaa7e0f75e83bd5b62d9152ac29eb623b19b211
7
+ data.tar.gz: 6234e32087e0f12b318a89164d95cb766fd0dcf1d9694d556a5ee2140d31bdeb98bcb72fa2c3e5799a84be67a5149830a706ad7eae7be9327eadf40397f8fccd
@@ -7,7 +7,7 @@ module ClickhouseActiverecord
7
7
 
8
8
  def aggregate(name, o, collector)
9
9
  # replacing function name for materialized view
10
- if o.expressions.first.relation.engine.is_view
10
+ if o.expressions.first && o.expressions.first.relation && o.expressions.first.relation.engine && o.expressions.first.relation.engine.is_view
11
11
  super("#{name.downcase}Merge", o, collector)
12
12
  else
13
13
  super
@@ -1,3 +1,3 @@
1
1
  module ClickhouseActiverecord
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clickhouse-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Odintsov