Esempio n. 1
0
 def _catalog_filter_table(cls, table: agate.Table, manifest: Manifest) -> agate.Table:
     table = table_from_rows(
         table.rows,
         table.column_names,
         text_only_columns=["table_schema", "table_name"],
     )
     return table.where(cls._catalog_filter_schemas(manifest))
Esempio n. 2
0
 def _catalog_filter_table(cls, table: agate.Table,
                           manifest: Manifest) -> agate.Table:
     """Filter the table as appropriate for catalog entries. Subclasses can
     override this to change filtering rules on a per-adapter basis.
     """
     # force database + schema to be strings
     table = table_from_rows(
         table.rows,
         table.column_names,
         text_only_columns=['table_database', 'table_schema', 'table_name'])
     return table.where(_catalog_filter_schemas(manifest))