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

Format files: Mailgun connector and Snowflake #8601

Merged
merged 1 commit into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* Snowflake Internal Staging consists of 4 main parts
*
* CREATE STAGE @TEMP_STAGE_NAME -- Creates a new named internal stage to use for loading data from
* files into Snowflake tables and unloading data from tables into files
* PUT file://local/<file-patterns> @TEMP_STAGE_NAME. --JDBC Driver will upload the files into stage
* files into Snowflake tables and unloading data from tables into files PUT
* file://local/<file-patterns> @TEMP_STAGE_NAME. --JDBC Driver will upload the files into stage
* COPY FROM @TEMP_STAGE_NAME -- Loads data from staged files to an existing table.
* DROP @TEMP_STAGE_NAME -- Drop temporary stage after sync
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

package io.airbyte.integrations.destination.snowflake;

import static io.airbyte.integrations.destination.snowflake.SnowflakeDestination.isInternalStaging;

import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.base.Preconditions;
import io.airbyte.commons.io.IOs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,7 @@ def _create_prepared_request(
"""
Override to make http_method configurable per method call
"""
args = {
"method": http_method,
"url": urljoin(self.url_base, path),
"headers": headers, "params": params
}
args = {"method": http_method, "url": urljoin(self.url_base, path), "headers": headers, "params": params}
if http_method.upper() in BODY_REQUEST_METHODS:
if json and data:
raise RequestBodyException(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

import json

import pytest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

import datetime
import json
import os.path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

import argparse
import concurrent.futures
import json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"last_update_timestamp": 1638751417.94276}
{ "last_update_timestamp": 1638751417.94276 }
1 change: 0 additions & 1 deletion airbyte-integrations/connectors/source-mailgun/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import sys

from airbyte_cdk.entrypoint import launch

from source_mailgun import SourceMailgun

if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@
}
},
"timestamp": {
"type": "number"
"type": "number"
},
"user-variables": {
"type": ["null", "object"]
"type": ["null", "object"]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

import datetime
import json
import logging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

from base64 import b64encode
from unittest.mock import MagicMock

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

import time

import pytest as pytest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#

import json
from unittest.mock import MagicMock

import pytest
import requests as requests
import responses

from source_mailgun.source import SourceMailgun

from . import TEST_CONFIG
Expand Down