Exemplo n.º 1
0
    def setUp(self):
        self.config = test_utils.get_test_config()
        bigquery = DbSync(self.config)

        # Drop target schema
        if self.config['default_target_schema']:
            client = bigquery.open_connection()
            client.delete_dataset(
                self.config['default_target_schema'],
                delete_contents=True,
                not_found_ok=True)
    def setUp(self):
        self.config = test_utils.get_test_config()
        snowflake = DbSync(self.config)

        # Drop target schema
        if self.config['default_target_schema']:
            snowflake.query("DROP SCHEMA IF EXISTS {}".format(self.config['default_target_schema']))

        # Delete target schema entries from PIPELINEWISE.COLUMNS
        if self.config['stage']:
            snowflake.query("DELETE FROM {}.columns WHERE TABLE_SCHEMA ilike '{}'".format(snowflake.pipelinewise_schema, self.config['default_target_schema']))
    def setUp(self):
        self.config = test_utils.get_test_config()
        snowflake = DbSync(self.config)

        # Drop target schema
        if self.config['default_target_schema']:
            snowflake.query("DROP SCHEMA IF EXISTS {}".format(
                self.config['default_target_schema']))

        # Drop pipelinewise schema with information_schema cache
        if self.config['stage']:
            snowflake.query("DROP TABLE IF EXISTS {}.columns".format(
                snowflake.pipelinewise_schema))
 def setUp(self):
     self.config = test_utils.get_test_config()
     s3.setup_aws_client(self.config)
Exemplo n.º 5
0
 def setUp(self):
     self.config = test_utils.get_test_config()
Exemplo n.º 6
0
 def setUp(self):
     self.config = test_utils.get_test_config()
     snowflake = DbSync(self.config)
     if self.config['schema']:
         snowflake.query("DROP SCHEMA IF EXISTS {}".format(
             self.config['schema']))
 def setUp(self):
     self.config = test_utils.get_test_config()
     self.s3_client = s3.create_client(self.config)