Exemplo n.º 1
0
 def output(self):
     """
     Returns a Vertica target noting that the update occurred.
     """
     return CredentialFileVerticaTarget(
         credentials_target=self.input()['credentials'],
         table=self.view,
         schema=self.schema,
         update_id=self.update_id())
Exemplo n.º 2
0
 def output(self):
     """
     Returns a VerticaTarget representing the task ran.
     """
     return CredentialFileVerticaTarget(
         credentials_target=self.input()['credentials'],
         table=self.marker_name,
         schema=self.schema,
         update_id=self.update_id(),
         marker_schema=self.marker_schema)
Exemplo n.º 3
0
    def output(self):
        """
        Returns a VerticaTarget representing the inserted dataset.
        """
        if self.output_target is None:
            self.output_target = CredentialFileVerticaTarget(
                credentials_target=self.input()['credentials'],
                table=self.script_name,
                schema=self.schema,
                update_id=self.update_id(),
                read_timeout=self.read_timeout,
                marker_schema=self.marker_schema,
            )

        return self.output_target