Exemple #1
0
    def upsert_table_helper(self, connection, table_schema, metadata, log_schema_changes=True):
        self.LOGGER.info('upsert_table_helper: Schema before nullability: {}'.format(table_schema))

        nullable_table_schema = deepcopy(table_schema)
        nullable_table_schema['schema'] = _make_schema_nullable(nullable_table_schema['schema'])
        self.LOGGER.info('upsert_table_helper: Schema after nullability: {}'.format(nullable_table_schema))
        return PostgresTarget.upsert_table_helper(self,
                                                  connection,
                                                  nullable_table_schema,
                                                  metadata,
                                                  log_schema_changes=log_schema_changes)
Exemple #2
0
 def upsert_table_helper(self,
                         connection,
                         table_schema,
                         metadata,
                         log_schema_changes=True):
     nullable_table_schema = deepcopy(table_schema)
     nullable_table_schema['schema'] = _make_schema_nullable(
         nullable_table_schema['schema'])
     return PostgresTarget.upsert_table_helper(
         self,
         connection,
         nullable_table_schema,
         metadata,
         log_schema_changes=log_schema_changes)