multiwoven-integrations 0.22.1 → 0.22.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fae0d43ad10121ec2e28fdb0edab491cf8e2a03ee77a0ae5fd839ad95f105b4
|
4
|
+
data.tar.gz: 7bd337e50fa3e10dda4c8923f0a81cdbd55f4717d5aff47cfeb2165b5af77df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11d63fd665edb3491e854f5dab1e68551668e3ef6acaaa17afd1ebb56a66ecb9d404398ea21e78dbbf39cb62f33cba872f04d22d9a404836425fbe272c2fd3c2
|
7
|
+
data.tar.gz: 6280406bba582c49e8aa5cc542cc079f9a178146b024327a13e59ff6d77509baea853f8428537be1fbd5b50fdf9129c017168ac6469f553153d82ced3d2ed0ff
|
@@ -87,7 +87,11 @@ module Multiwoven::Integrations::Source
|
|
87
87
|
|
88
88
|
def query(conn, query)
|
89
89
|
@sftp.download!(@remote_file_path, @tempfile.path)
|
90
|
-
|
90
|
+
if query.gsub(/FROM\s+\S+/i).count > 1
|
91
|
+
query = query.gsub("FROM #{@remote_file_path}", "FROM read_csv_auto('#{@tempfile.path}')")
|
92
|
+
elsif query.match?(/\bFROM\b/i)
|
93
|
+
query = query.gsub(/FROM\s+\S+/i, "FROM read_csv_auto('#{@tempfile.path}')")
|
94
|
+
end
|
91
95
|
records = get_results(conn, query)
|
92
96
|
records.map do |row|
|
93
97
|
RecordMessage.new(data: row, emitted_at: Time.now.to_i).to_multiwoven_message
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiwoven-integrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.22.
|
4
|
+
version: 0.22.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subin T P
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|