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

convert adapter table materialization test #6595

Merged
merged 4 commits into from
Jan 13, 2023
Merged

Conversation

ChenyuLInx
Copy link
Contributor

resolves #6576

Description

move adapter ddl test to new test framework. Since it is adapter specific so moving to adapter folder

Checklist

@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

{{
config(
materialized = "table",
sort = 'first_name',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only specific part for this test, otherwise we could actually remove it

Copy link
Member

@aranke aranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, maybe add a comment to explain what a mat test is?

@ChenyuLInx ChenyuLInx added the Skip Changelog Skips GHA to check for changelog file label Jan 12, 2023
@@ -0,0 +1,97 @@
import pytest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Rename file to test_table_materialization.py.

return {'materialized.sql': model_sql}

def test_table_materialization_sort_dist_no_op(self, project):
# basic table mat test, sort and dist is not supported by postgres so the result table would still be same as input
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: mat -> materialization.

@aranke aranke changed the title convert adapter table mat test convert adapter table materialization test Jan 12, 2023
@ChenyuLInx ChenyuLInx merged commit f789b25 into main Jan 13, 2023
@ChenyuLInx ChenyuLInx deleted the cl/adapter_ddl_test branch January 13, 2023 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-1789] 018_adapter_ddl_tests
3 participants