Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

fix(connectors): updated quoted identifier strings #980

Merged
merged 6 commits into from
Jun 9, 2022

Conversation

kartikay-bagla
Copy link
Contributor

@kartikay-bagla kartikay-bagla commented Jun 7, 2022

TODO:

@gitpod-io
Copy link

gitpod-io bot commented Jun 7, 2022

@netlify
Copy link

netlify bot commented Jun 7, 2022

Deploy Preview for frontend-sb canceled.

Name Link
🔨 Latest commit 8c38634
🔍 Latest deploy log https://app.netlify.com/sites/frontend-sb/deploys/62a18e917b2d3b0009d9330d

@kartikay-bagla kartikay-bagla requested a review from Samyak2 June 7, 2022 03:09
@kartikay-bagla kartikay-bagla added this to the v0.8.0 milestone Jun 7, 2022
@kartikay-bagla kartikay-bagla added 🐛 bug Something isn't working 🔗 connectors DB, DW & third party connectors labels Jun 7, 2022
+ f"""'{end_date.strftime("%Y-%m-%d")}T00:00:00+05:30'"""
assert output_query == dl._build_query().strip()

# test for snowflake
Copy link
Member

Choose a reason for hiding this comment

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

Some feedback for the future (can be added as TODO)

  • Most of this code feels repetitive. This can be made a generic function and then a list of test case input and output can be passed to have the test cases. In that way, you can easily add more than one test case for a single data source.
  • We can add 3-4 more test cases for the snowflake to be sure that we have covered the majority of test cases.

@kartikay-bagla kartikay-bagla merged commit 7b9dba2 into develop Jun 9, 2022
@kartikay-bagla kartikay-bagla deleted the fix/sql-identifiers branch June 9, 2022 06:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working 🔗 connectors DB, DW & third party connectors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Cannot define KPI with tables which contain '-' in the table name.
2 participants