openreplay/ee/connectors
MauricioGarciaS 28182b951e
Redshift connector (#1170)
* Updated dependancies for redshift connector, changed os module for python-decouple module

* Updated service and images

* Updated message protocol, added exception for BatchMetadata when version is 0 (we apply old read method)

* fixed load error from s3 to redshift. null values for string columns are now empty strings ("")

* Added file test consumer_async.py: reads every 3 minutes kafka raw and send task in background to upload to cloud

* Added method to skip messages that are not inserted to cloud

* Added logs into consumer_async. Changed urls and issues in sessions table from list to string

* Split between messages for sessions table and for events table

* Updated redshift tables

* Fixed small issue in query redshift_sessions.sql

* Updated Dockerfiles. Cleaned logs of consumer_async. Updated/Fixed tables. Transformed Nan as NULL for VARCHAR columns

* Added error handler for sql dropped connection

* chore(docker): Optimize docker builds

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>

* Variables renamed

* Adding compression libraries

* Set default value of count events to 0 (instead of NULL) when event did not occur

* Added support specific  project tracking. Added PG handler to connect to sessions table

* Added method to update values in db connection for sessions ended and restarted

* Removing intelligent file copying

* chore(connector): Build file

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>

* Adding connection pool for pg

* Renaming and optimizing

* Fixed issue of missing information of sessions

---------

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
Co-authored-by: rjshrjndrn <rjshrjndrn@gmail.com>
2023-05-02 14:02:57 +02:00
..
bigquery_utils Updated types in BigQuery table 2022-07-20 10:56:17 +02:00
data_analysis_cookbook boilerplate 2021-06-17 18:08:44 +03:00
db Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
deploy Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
msgcodec Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
sql Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
utils Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
consumer.py Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
consumer_async.py Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
entrypoint.sh Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
handler.py Redshift connector (#1170) 2023-05-02 14:02:57 +02:00
main.py refactor(ee/connectors):split code to make it generatable 2022-07-22 13:24:52 +02:00
Readme.md Redshift connector (#1170) 2023-05-02 14:02:57 +02:00

Build

docker build -f deploy/Dockerfile_redshift -t {tag} .