multiwoven-integrations 0.5.0 → 0.5.2

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: 4383545bc6859b88187d4e38e70be9166e792cadf23b44ac22437202c836db9b
4
- data.tar.gz: febd77085d1f369c6444275fb6a2079a2c2c25abdd8671587c1e93e4512663e7
3
+ metadata.gz: fdecb7677ac11971794080ac898200969ee1b243e917ccba7f1c7ce254ebdcb5
4
+ data.tar.gz: f609d9a9cfcef3644b07352d6704c713070046c5b8e405017e3e7f8c11d112e6
5
5
  SHA512:
6
- metadata.gz: feb86afd8c6817e3fb67f8f7f525a6db44fe4325ac69b1fdda1e72dc27e4ab7d7f6e5a6415481c7a1bfc31c794590e63a8d73cef2e2efe157bd0e94f92d86a66
7
- data.tar.gz: 36f2532bf27e28434ddd1c639ed3ba2ef64ace163de40f7030763d58f1c28fda947b312ed563b50d5dbfa10ab3828cbc2c7173f15cbd7a28c4918f634d1f8740
6
+ metadata.gz: 98d9e5c0028a6e6d3b45584ba8cbd01778040ec0a2a7cf77a1dc2e1a326735df427021300e3b7cf412ee270e8bbe67101c9148cf203518d6504f1af6fd32b2cd
7
+ data.tar.gz: f4aece39d2bdcb2901b2c9981e1ad4ca6ddb24333b8ab057b2fdd275c3496404569ac830abcd8d690f48ac39d493c661b305e119eee5a286d4dd211e8ba23d65
@@ -16,6 +16,8 @@ module Multiwoven
16
16
  JSON_SCHEMA_URL = "https://json-schema.org/draft-07/schema#"
17
17
 
18
18
  # CONNECTORS
19
+ INSTALL_HTTPFS_QUERY = ENV["INSTALL_HTTPFS_QUERY"] || "INSTALL HTTPFS; LOAD HTTPFS;"
20
+
19
21
  KLAVIYO_AUTH_ENDPOINT = "https://a.klaviyo.com/api/lists/"
20
22
  KLAVIYO_AUTH_PAYLOAD = {
21
23
  data: {
@@ -102,7 +102,9 @@ module Multiwoven::Integrations::Destination
102
102
  result[index][:tablename] = table_name
103
103
  result[index][:columns] = [column_data]
104
104
  end
105
- result
105
+ result.values.group_by { |entry| entry[:tablename] }.transform_values do |entries|
106
+ { tablename: entries.first[:tablename], columns: entries.flat_map { |entry| entry[:columns] } }
107
+ end
106
108
  end
107
109
 
108
110
  def tracking_message(success, failure)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.2"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -74,6 +74,8 @@ module Multiwoven::Integrations::Source
74
74
  @session_name = "preview-#{connection_config[:region]}-#{connection_config[:bucket]}" if @session_name.to_s.empty?
75
75
  auth_data = get_auth_data(connection_config)
76
76
  conn = DuckDB::Database.open.connect
77
+ # Install and/or Load the HTTPFS extension
78
+ conn.execute(INSTALL_HTTPFS_QUERY)
77
79
  # Set up S3 configuration
78
80
  secret_query = "
79
81
  CREATE SECRET amazons3_source (
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiwoven-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P