-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Destination AWS Datalake: Upgrade AWSWrangler (#29221)
Signed-off-by: Henri Blancke <[email protected]> Co-authored-by: Marcos Marx <[email protected]> Co-authored-by: marcosmarxm <[email protected]>
- Loading branch information
1 parent
148dda1
commit 8d60177
Showing
8 changed files
with
569 additions
and
76 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
airbyte-integrations/connectors/destination-aws-datalake/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FROM python:3.9-slim | ||
# FROM python:3.9.11-alpine3.15 | ||
FROM python:3.10-slim | ||
|
||
# Bash is installed for more convenient debugging. | ||
# RUN apt-get update && apt-get install -y bash && rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /airbyte/integration_code | ||
COPY destination_aws_datalake ./destination_aws_datalake | ||
COPY main.py ./ | ||
COPY setup.py ./ | ||
RUN pip install . | ||
|
||
COPY destination_aws_datalake ./destination_aws_datalake | ||
|
||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" | ||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] | ||
|
||
LABEL io.airbyte.version=0.1.3 | ||
LABEL io.airbyte.version=0.1.4 | ||
LABEL io.airbyte.name=airbyte/destination-aws-datalake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...te-integrations/connectors/destination-aws-datalake/destination_aws_datalake/constants.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Copyright (c) 2023 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
EMPTY_VALUES = ["", " ", "#N/A", "#N/A N/A", "#NA", "<NA>", "N/A", "NA", "NULL", "none", "None", "NaN", "n/a", "nan", "null", "[]", "{}"] | ||
BOOLEAN_VALUES = ["true", "1", "1.0", "t", "y", "yes"] | ||
|
||
PANDAS_TYPE_MAPPING = { | ||
"string": "string", | ||
"integer": "Int64", | ||
"number": "float64", | ||
"boolean": "bool", | ||
"object": "object", | ||
"array": "object", | ||
} | ||
|
||
GLUE_TYPE_MAPPING_DOUBLE = { | ||
"string": "string", | ||
"integer": "bigint", | ||
"number": "double", | ||
"boolean": "boolean", | ||
"null": "string", | ||
} | ||
|
||
GLUE_TYPE_MAPPING_DECIMAL = { | ||
**GLUE_TYPE_MAPPING_DOUBLE, | ||
"number": "decimal(38, 25)", | ||
} |
Oops, something went wrong.