Skip to content

Commit

Permalink
format files (#8601)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed Dec 7, 2021
1 parent f00f10e commit 161a1ee
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 14 deletions.
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

0 comments on commit 161a1ee

Please sign in to comment.