aleph_analytics 0.4.2 → 0.4.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
  SHA1:
3
- metadata.gz: 8bf0f1fc5b43a93ae8232cef7a809e5087a4937b
4
- data.tar.gz: 877a6cb72c1f2134d9a0e940c24439a4cebfaa42
3
+ metadata.gz: f2b01c508c386a6740656a27e2209afca2d4e064
4
+ data.tar.gz: 474558a4705d60c5886c60e118792d09176e7ff0
5
5
  SHA512:
6
- metadata.gz: e80ad98b3161bc1c212353a830a543fd26d38a931524988a639cba93e8addd3c0456e3f2ed68153b36ee7154e8e1799872bd0b833212ee4ecde29cca746baf32
7
- data.tar.gz: 6c03a869a3fb02f6d6c26a15e4c15203d5d636d6cc04499e41756345460aafc43668a948111d14ebbaaef28d0b67f7d39895c7f0105f831a59a587a239f13c4a
6
+ metadata.gz: 31040aa19d848ee75438dbf6fe830c52c4a61c66ca67c95ab44aac59c9fd6b920ec26bd2628bcb333a2ab399b8fa52e4a83e9018be1d40ab5d53038220f9aed5
7
+ data.tar.gz: 563bca2c94a694fd9000fe406c159d55b7f6a209c47c7cdb25670a7cc206e7398528de81df0048939312f028f25b930965b8614aee5d949fe4854196eb2092e9
@@ -1,13 +1,24 @@
1
- # Change Log
1
+ Change Log
2
+ ==========
3
+
2
4
  All notable changes to this project will be documented in this file using [Semantic Versioning](http://semver.org/).
3
5
 
6
+ ## [0.4.4] - 2019-12-13
7
+ ### Removed
8
+ - Remove hard-coded STDOUT and STDERR log redirection by environment so that the user can decide where they want this to go.
9
+
10
+ ## [0.4.3] - 2019-12-04
11
+ ### Fixed
12
+ - Fix connection reset for Snowflake
13
+ - Fix data types for Snowflake (use data_type instead of udt_name)
14
+
4
15
  ## [0.4.2] - 2019-09-25
5
16
  ### Fixed
6
17
  - [Error when Snowflake query returns empty result set](https://github.com/lumoslabs/aleph/issues/91)
7
18
 
8
19
  ## [0.4.1] - 2019-09-10
9
20
  ### Fixed
10
- - [Bug fixes for v0.4.0](https://github.com/lumoslabs/aleph/pull/89)
21
+ - [Bug fixes for v0.4.0](https://github.com/lumoslabs/aleph/pull/89)
11
22
 
12
23
  ## [0.4.0] - 2019-09-02
13
24
  ### Features
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
 
2
- # Aleph
2
+ Aleph
3
+ =====
4
+
3
5
  Aleph is a business analytics platform that focuses on ease-of-use and operational simplicity. It allows analysts to quickly author and iterate on queries, then share result sets and visualizations. Most components are modular, but it was designed to version-control queries (and analyze their differences) using Github and store result sets long term in Amazon S3.
4
6
 
5
7
  ![aleph](images/aleph_repo_banner.png)
@@ -52,7 +54,7 @@ You must install `unixodbc-dev` and setup and configure [snowflake ODBC](https:/
52
54
 
53
55
  apt-get update && apt-get install -y unixodbc-dev
54
56
  curl -o /tmp/snowflake_linux_x8664_odbc-2.19.8.tgz https://sfc-repo.snowflakecomputing.com/odbc/linux/latest/snowflake_linux_x8664_odbc-2.19.8.tgz && cd /tmp && gunzip snowflake_linux_x8664_odbc-2.19.8.tgz && tar -xvf snowflake_linux_x8664_odbc-2.19.8.tar && cp -r snowflake_odbc /usr/bin && rm -r /tmp/snowflake_odbc
55
- cd /usr/bin/snowflake_odbc
57
+ cd /usr/bin/snowflake_odbc
56
58
  ./unixodbc_setup.sh # and following the instructions to setup Snowflake DSN
57
59
 
58
60
  ###### Install and run Redis
@@ -73,12 +75,12 @@ See [Database Configuration](#database-configuration) above
73
75
  aleph run_demo
74
76
 
75
77
  * For Snowflake
76
-
78
+
77
79
  export AWS_ACCESS_KEY_ID="{aws key id}"
78
80
  export AWS_SECRET_ACCESS_KEY="{aws secret key}"
79
81
  aleph setup_minimal -t snowflake -S snowflake -U {user} -P {password} -L {snowflake_unload_target} -R {s3_region} -B {s3_bucket} -F {s3_folder}
80
82
  aleph run_demo
81
-
83
+
82
84
  Aleph should be running at `localhost:3000`
83
85
 
84
86
  ## Aleph Gem
@@ -105,7 +107,7 @@ There are a number of ways to install and deploy Aleph. The simplest is to set u
105
107
  RUN apt-get update && apt-get install -y unixodbc-dev
106
108
  RUN curl -o /tmp/snowflake_linux_x8664_odbc-2.19.8.tgz https://sfc-repo.snowflakecomputing.com/odbc/linux/latest/snowflake_linux_x8664_odbc-2.19.8.tgz && cd /tmp && gunzip snowflake_linux_x8664_odbc-2.19.8.tgz && tar -xvf snowflake_linux_x8664_odbc-2.19.8.tar && cp -r snowflake_odbc /usr/bin && rm -r /tmp/snowflake_odbc
107
109
  RUN cd /usr/bin/snowflake_odbc && sed -i 's/SF_ACCOUNT/{your snowflake account}/g' ./unixodbc_setup.sh && ./unixodbc_setup.sh
108
-
110
+
109
111
  # make a log location
110
112
  RUN mkdir -p /var/log/aleph
111
113
  ENV SERVER_LOG_ROOT /var/log/aleph
@@ -127,8 +129,8 @@ There are a number of ways to install and deploy Aleph. The simplest is to set u
127
129
  You can then deploy and run the main components of Aleph as separate services using the gem executables:
128
130
 
129
131
  - web_server - `aleph web_server --worker-process 2`
130
- - query workers - `aleph workers`
131
- - clock (used to trigger alerts) - `aleph clock`
132
+ - query workers - `aleph workers`
133
+ - clock (used to trigger alerts) - `aleph clock`
132
134
 
133
135
  At runtime, you can inject all the secrets as environment variables.
134
136
 
@@ -1,10 +1,3 @@
1
1
  threads 0, 16
2
2
  workers ENV['WORKER_PROCESSES'].to_i
3
3
  bind 'tcp://0.0.0.0:3000'
4
-
5
- if ENV['RAILS_ENV'] == 'production' || ENV['RAILS_ENV'] == 'staging'
6
- log_root = ENV['SERVER_LOG_ROOT'] || '/var/log/aleph'
7
- stdout_dir = File.join(log_root, 'puma.stdout.log')
8
- stderr_dir = File.join(log_root, 'puma.stderr.log')
9
- stdout_redirect stdout_dir, stderr_dir, true
10
- end
@@ -10,7 +10,12 @@ module Schemas
10
10
  #{LOWERCASE_DB_IDENTIFIERS ? 'LOWER(table_schema) AS ': ''}table_schema,
11
11
  #{LOWERCASE_DB_IDENTIFIERS ? 'LOWER(table_name) AS ': ''}table_name,
12
12
  #{LOWERCASE_DB_IDENTIFIERS ? 'LOWER(column_name) AS ': ''}column_name,
13
- udt_name,
13
+ (COALESCE(udt_name, data_type) ||
14
+ CASE
15
+ WHEN character_maximum_length IS NOT NULL THEN '(' || character_maximum_length || ')'
16
+ WHEN numeric_precision IS NOT NULL THEN '(' || numeric_precision || ', ' || numeric_scale || ')'
17
+ ELSE ''
18
+ END) AS udt_name,
14
19
  character_maximum_length
15
20
  FROM information_schema.columns
16
21
  WHERE table_schema NOT IN ('INFORMATION_SCHEMA', 'information_schema', 'pg_catalog', 'public')
@@ -19,7 +19,8 @@ module SnowflakeDB
19
19
  return yield
20
20
  rescue Sequel::DatabaseError => e
21
21
  raise unless connection_expired_error?(e)
22
- connection.reset
22
+ @connection.disconnect if @connection.connected?
23
+ @connection = nil
23
24
  return yield # retry once
24
25
  end
25
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aleph_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Xue
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-09-25 00:00:00.000000000 Z
13
+ date: 2019-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -365,7 +365,7 @@ files:
365
365
  - public/422.html
366
366
  - public/500.html
367
367
  - public/aleph.png
368
- - public/assets/.sprockets-manifest-e90c0c4662c0c76f7810002edc0efab9.json
368
+ - public/assets/.sprockets-manifest-cb32c16ffbb9e8be78756eea991603dc.json
369
369
  - public/assets/FontAwesome-9ccfa32dd4cd1b8e83f68899d85bd5e6.otf
370
370
  - public/assets/ZeroClipboard-8b5c117b88fe37e32fd34a70fdf60026.swf
371
371
  - public/assets/angular/aleph.js-4356bfc80f5b7dd3a9c9fdfacc6c8e7b.es6