Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: Fix Postgres Cypress Failure #14698

Merged
merged 3 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ def get_table_partition_details(
self, table_name: str, schema_name: str, inspector
) -> Tuple[bool, TablePartition]:
result = self.engine.execute(
POSTGRES_PARTITION_DETAILS.format(
table_name=table_name, schema_name=schema_name
)
POSTGRES_PARTITION_DETAILS, table_name=table_name, schema_name=schema_name
).all()
if result:
partition_details = TablePartition(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
col.table_schema = par.relnamespace::regnamespace::text
and col.table_name = par.relname
and ordinal_position = pt.column_index
where par.relname='{table_name}' and par.relnamespace::regnamespace::text='{schema_name}'
where par.relname=%(table_name)s and par.relnamespace::regnamespace::text=%(schema_name)s
"""
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ const clearQuery = 'select pg_stat_statements_reset()';
const selectQuery =
'SELECT * FROM sales.order_items oi INNER JOIN sales.orders o ON oi.order_id=o.order_id';

// @ayush - Need to fix postgres ingestion issue
describe.skip('Postgres Ingestion', () => {
describe('Postgres Ingestion', () => {
beforeEach(() => {
cy.login();
});

it('Trigger select query', () => {
cy.postgreSQL(clearQuery);
cy.wait(500);
cy.postgreSQL(selectQuery);
});

Expand Down Expand Up @@ -132,7 +132,7 @@ describe.skip('Postgres Ingestion', () => {

cy.get('#root\\/filterCondition')
.scrollIntoView()
.type(`s.query like '%%${tableName}%%'`);
.type(`lower(s.query) like '%%${tableName}%%'`);
cy.get('[data-testid="submit-btn"]')
.scrollIntoView()
.should('be.visible')
Expand Down
Loading