blazer 2.4.2 → 2.4.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of blazer might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c8356dddcf7221e7bbf93eb4cc4d1e1b7804f08c29dd57006517d0e157f1ff4
4
- data.tar.gz: 7ac1354b00daa9905901a6c11c6e8a948962e2c6830feeaa19d065bfa1bde9a6
3
+ metadata.gz: '08400542eda5d82b7569d90dad5f6c700ceab0484bd339d096eee09626db97a5'
4
+ data.tar.gz: 609271bc5d4d07411b1505712ad2065fe91beff68092b66d28ecd42507d68d51
5
5
  SHA512:
6
- metadata.gz: 5959df81b7c5dbe0b608bfe565f1d98d2a7119a6309bbf934d86d1154227cd6315051ec131c9e8a8d9641022468c42724152620b4a226ee8300791d1095df858
7
- data.tar.gz: 694140d5e5fe1904f16ccbcd95f9e18b8fcd54e7630d0df05637ddc977ab223220cb749798c8d365d77f962b131a91135bcfa9c12dc4d849f3d4caea1a642f79
6
+ metadata.gz: 246f1436dbe7ab10d06c345d3d31c45e5da2762865d4179a469b5d066f65f1a151dda065068d428ea19cc2fead84ba3e6e8844858a493b43fb04a17b081e4f0f
7
+ data.tar.gz: 436decf768b654fadb06e93a2414a087c816b509849d295e291275c7e69bcb73fdcabaf9496d2ee5c83146c29305aa2cc130a3b41b98617214c3033177931ae7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## 2.4.6 (2021-09-20)
2
+
3
+ - Added support for workgroup with Amazon Athena
4
+ - Added casting for timestamp with time zone columns with Amazon Athena
5
+ - Added support for setting credentials in config file with Amazon Athena
6
+ - Made output location optional with Amazon Athena
7
+ - Fixed casting error for `NULL` values with Amazon Athena
8
+ - Fixed issue with Google BigQuery only showing first page of results
9
+
10
+ ## 2.4.5 (2021-09-15)
11
+
12
+ - Improved fix for some forked queries not appearing on home page
13
+
14
+ ## 2.4.4 (2021-09-15)
15
+
16
+ - Fixed issue with some forked queries not appearing on home page
17
+
18
+ ## 2.4.3 (2021-07-27)
19
+
20
+ - Added Prophet anomaly detection
21
+ - Fixed style for new select items
22
+
1
23
  ## 2.4.2 (2021-02-08)
2
24
 
3
25
  - Added support for Apache Ignite
data/README.md CHANGED
@@ -416,11 +416,25 @@ This feature requires PostgreSQL or MySQL.
416
416
 
417
417
  ## Anomaly Detection
418
418
 
419
- Blazer supports two different approaches to anomaly detection.
419
+ Blazer supports three different approaches to anomaly detection.
420
+
421
+ ### Prophet
422
+
423
+ Add [prophet-rb](https://github.com/ankane/prophet) to your Gemfile:
424
+
425
+ ```ruby
426
+ gem 'prophet-rb'
427
+ ```
428
+
429
+ And add to `config/blazer.yml`:
430
+
431
+ ```yml
432
+ anomaly_checks: prophet
433
+ ```
420
434
 
421
435
  ### Trend
422
436
 
423
- [Trend](https://trendapi.org/) is easiest to set up. By default, it uses an external service, but you can run it on your own infrastructure as well.
437
+ [Trend](https://trendapi.org/) uses an external service by default, but you can run it on your own infrastructure as well.
424
438
 
425
439
  Add [trend](https://github.com/ankane/trend) to your Gemfile:
426
440
 
@@ -442,7 +456,7 @@ Trend.url = "http://localhost:8000"
442
456
 
443
457
  ### R
444
458
 
445
- R is harder to set up but doesn’t use an external service. It uses Twitter’s [AnomalyDetection](https://github.com/twitter/AnomalyDetection) library.
459
+ R uses Twitter’s [AnomalyDetection](https://github.com/twitter/AnomalyDetection) library.
446
460
 
447
461
  First, [install R](https://cloud.r-project.org/). Then, run:
448
462
 
@@ -567,7 +581,7 @@ data_sources:
567
581
  - [Amazon Redshift](#amazon-redshift)
568
582
  - [Apache Drill](#apache-drill)
569
583
  - [Apache Hive](#apache-hive)
570
- - [Apache Ignite](#apache-ignite) [master]
584
+ - [Apache Ignite](#apache-ignite)
571
585
  - [Apache Spark](#apache-spark)
572
586
  - [Cassandra](#cassandra)
573
587
  - [Druid](#druid)
@@ -606,9 +620,49 @@ data_sources:
606
620
  my_source:
607
621
  adapter: athena
608
622
  database: database
623
+
624
+ # optional settings
609
625
  output_location: s3://some-bucket/
626
+ workgroup: primary
627
+ access_key_id: ...
628
+ secret_access_key: ...
629
+ ```
630
+
631
+ Here’s an example IAM policy:
632
+
633
+ ```json
634
+ {
635
+ "Version": "2012-10-17",
636
+ "Statement": [
637
+ {
638
+ "Effect": "Allow",
639
+ "Action": [
640
+ "athena:GetQueryExecution",
641
+ "athena:GetQueryResults",
642
+ "athena:StartQueryExecution"
643
+ ],
644
+ "Resource": [
645
+ "arn:aws:athena:region:account-id:workgroup/primary"
646
+ ]
647
+ },
648
+ {
649
+ "Effect": "Allow",
650
+ "Action": [
651
+ "glue:GetTable",
652
+ "glue:GetTables"
653
+ ],
654
+ "Resource": [
655
+ "arn:aws:glue:region:account-id:catalog",
656
+ "arn:aws:glue:region:account-id:database/default",
657
+ "arn:aws:glue:region:account-id:table/default/*"
658
+ ]
659
+ }
660
+ ]
661
+ }
610
662
  ```
611
663
 
664
+ You also need to configure [S3 permissions](https://aws.amazon.com/premiumsupport/knowledge-center/access-denied-athena/).
665
+
612
666
  ### Amazon Redshift
613
667
 
614
668
  Add [activerecord6-redshift-adapter](https://github.com/kwent/activerecord6-redshift-adapter) or [activerecord5-redshift-adapter](https://github.com/ConsultingMD/activerecord5-redshift-adapter) to your Gemfile and set:
@@ -735,6 +789,8 @@ Supports [InfluxQL](https://docs.influxdata.com/influxdb/v1.8/query_language/exp
735
789
 
736
790
  ### MongoDB
737
791
 
792
+ *Requires MongoDB < 4.2 at the moment*
793
+
738
794
  Add [mongo](https://github.com/mongodb/mongo-ruby-driver) to your Gemfile and set:
739
795
 
740
796
  ```yml