Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replikacja PostgresSQL do BigQuery #3690

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Replikacja PostgresSQL do BigQuery #3690

merged 2 commits into from
Apr 18, 2024

Conversation

mik-laj
Copy link
Member

@mik-laj mik-laj commented Apr 17, 2024

Hej,

Chcemy korzystać z Gogole Looker Studio ponownie, ale Google Looker Studio ma problemy z łączeniem sie do naszego PostgresSQL, więc teraz replikujemy dane z PostgresSQL do BigQuery, aby wykonywać na nim swobodne analityki. To też rozwiązuje nam inne problemy i daje inne możliwości:

  • mamy swobodną kontrolę i ochrone danych wrażliwych np. możemy nie udostępniać kolumny z hasłem
  • możemy wykonywać bardziej złożone analityki.
  • potencjalnie możemy również udostępniać dane naszym partnerom

Ogólnie dużo korzyści i wygląda to dla mnie jak rozwiazanie, które jest najbardziej przyszłościowe, chodź też powoduje koszty. Trzeba obserwować koszty dla GCP i jeśli nie będa akceptowalne to zwalidować te podejście.

TODO:

  • Zaktualizować dokumentacje
  • Wyłączyć transfer dla pull requestów

@mik-laj mik-laj changed the title Copy PostgresSQL to GCS as CSV Copy PostgresSQL to BigQuery as CSV Apr 18, 2024
@mik-laj mik-laj changed the title Copy PostgresSQL to BigQuery as CSV Replicate PostgresSQL to BigQuery Apr 18, 2024
@mik-laj mik-laj changed the title Replicate PostgresSQL to BigQuery Replikacja PostgresSQL do BigQuery Apr 18, 2024
@mik-laj mik-laj merged commit ad3b678 into master Apr 18, 2024
9 checks passed
@mik-laj mik-laj deleted the transfer-postgres-to-gcs branch April 18, 2024 15:26
pwilkin added a commit that referenced this pull request Apr 18, 2024
* Update pre-commit hooks (#3691)

* Update pre-commit hooks

* fixup! Update pre-commit hooks

* Update .pre-commit-config.yaml

* build(deps): bump faker from 24.3.0 to 24.11.0 (#3693)

Bumps [faker](https://github.com/joke2k/faker) from 24.3.0 to 24.11.0.
- [Release notes](https://github.com/joke2k/faker/releases)
- [Changelog](https://github.com/joke2k/faker/blob/master/CHANGELOG.md)
- [Commits](joke2k/faker@v24.3.0...v24.11.0)

---
updated-dependencies:
- dependency-name: faker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump codecov/codecov-action from 4.1.0 to 4.3.0 (#3674)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.1.0 to 4.3.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v4.1.0...v4.3.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump parso from 0.8.3 to 0.8.4 (#3669)

Bumps [parso](https://github.com/davidhalter/parso) from 0.8.3 to 0.8.4.
- [Changelog](https://github.com/davidhalter/parso/blob/v0.8.4/CHANGELOG.rst)
- [Commits](davidhalter/parso@v0.8.3...v0.8.4)

---
updated-dependencies:
- dependency-name: parso
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump the aws group across 1 directory with 2 updates (#3692)

Bumps the aws group with 2 updates in the / directory: [boto3](https://github.com/boto/boto3) and [botocore](https://github.com/boto/botocore).


Updates `boto3` from 1.34.68 to 1.34.86
- [Release notes](https://github.com/boto/boto3/releases)
- [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst)
- [Commits](boto/boto3@1.34.68...1.34.86)

Updates `botocore` from 1.34.68 to 1.34.86
- [Changelog](https://github.com/boto/botocore/blob/develop/CHANGELOG.rst)
- [Commits](boto/botocore@1.34.68...1.34.86)

---
updated-dependencies:
- dependency-name: boto3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws
- dependency-name: botocore
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump werkzeug from 3.0.1 to 3.0.2 (#3656)

Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](pallets/werkzeug@3.0.1...3.0.2)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump django-model-utils from 4.4.0 to 4.5.0 (#3657)

Bumps [django-model-utils](https://github.com/jazzband/django-model-utils) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/jazzband/django-model-utils/releases)
- [Changelog](https://github.com/jazzband/django-model-utils/blob/master/CHANGES.rst)
- [Commits](jazzband/django-model-utils@4.4.0...4.5.0)

---
updated-dependencies:
- dependency-name: django-model-utils
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump typing-extensions from 4.10.0 to 4.11.0 (#3667)

Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](python/typing_extensions@4.10.0...4.11.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump asgiref from 3.8.0 to 3.8.1 (#3641)

Bumps [asgiref](https://github.com/django/asgiref) from 3.8.0 to 3.8.1.
- [Changelog](https://github.com/django/asgiref/blob/main/CHANGELOG.txt)
- [Commits](django/asgiref@3.8.0...3.8.1)

---
updated-dependencies:
- dependency-name: asgiref
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump requests-oauthlib from 1.4.0 to 2.0.0 (#3640)

Bumps [requests-oauthlib](https://github.com/requests/requests-oauthlib) from 1.4.0 to 2.0.0.
- [Release notes](https://github.com/requests/requests-oauthlib/releases)
- [Changelog](https://github.com/requests/requests-oauthlib/blob/master/HISTORY.rst)
- [Commits](requests/requests-oauthlib@v1.4.0...v2.0.0)

---
updated-dependencies:
- dependency-name: requests-oauthlib
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump pycparser from 2.21 to 2.22 (#3653)

Bumps [pycparser](https://github.com/eliben/pycparser) from 2.21 to 2.22.
- [Release notes](https://github.com/eliben/pycparser/releases)
- [Changelog](https://github.com/eliben/pycparser/blob/main/CHANGES)
- [Commits](eliben/pycparser@release_v2.21...release_v2.22)

---
updated-dependencies:
- dependency-name: pycparser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump sentry-sdk from 1.43.0 to 1.45.0 (#3678)

Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.43.0 to 1.45.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@1.43.0...1.45.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Replikacja PostgresSQL do BigQuery (#3690)

* Akcja 1,5% podatku (#3707)

* Update constants.py

* Poprawka testu

* I druga poprawka testu

---------

Co-authored-by: Piotr Wilkin <piotr.wilkin@syndatis.com>

* Poprawka ścieżki w skryptach CI (#3708)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: MatPerowicz <52166969+MatPerowicz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant