Fix a test failure in test_unit_foreign_key_check
In commit we changed a query filter
in the foreign_key_check test in gpcheckcat. That breaks the gppylib's unit
test 'test_unit_foreign_key_check' where it checks if the gpcheckcat tests
have desired calls. Adjusted it now.
@@ -175,7 +175,7 @@ class GpCheckCatTestCase(GpTestCase):
####################### PRIVATE METHODS #######################
def _get_filter(self, table_name):
query_filters = {}
- query_filters['pg_appendonly'] = "(select amname from pg_am am where am.oid = relam) IN ('ao_row', 'ao_column')"
+ query_filters['pg_appendonly'] = "((select amname from pg_am am where am.oid = relam) IN ('ao_row', 'ao_column')) AND relkind != 'p'"
query_filters['pg_attribute'] = "(relnatts > 0 or relnatts is NULL)"
query_filters['pg_constraint'] = "((relchecks>0 or relhaspkey='t') and relkind = 'r')"
query_filters['gp_distribution_policy'] = """(relnamespace not in(select oid from pg_namespace where nspname ~ 'pg_')
