-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179 from dekart-xyz/snowflake-storage
SNOWFLAKE storage backend support
- Loading branch information
Showing
33 changed files
with
731 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable no-undef */ | ||
import copy from '../../fixtures/copy.json' | ||
|
||
describe('happy path', () => { | ||
it('should make simple snowflake query and get ready status', () => { | ||
cy.visit('/') | ||
cy.get(`button:contains("${copy.create_report}")`).click() | ||
cy.get('button:contains("Add data from...")').click() | ||
cy.get('span:contains("SQL query")').click() | ||
cy.get('textarea').type(copy.simple_snowflake_query, { force: true }) | ||
cy.get(`button:contains("${copy.execute}")`).click() | ||
cy.get(`span:contains("${copy.ready}")`, { timeout: 20000 }).should('be.visible') | ||
cy.get(`span:contains("${copy.downloading}")`).should('contain', 'kB') // size of result shown | ||
cy.get('div:contains("100 rows")', { timeout: 20000 }).should('be.visible') | ||
}) | ||
}) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* eslint-disable no-undef */ | ||
import copy from '../../fixtures/copy.json' | ||
|
||
describe('run all queries', () => { | ||
it('should run all queries', () => { | ||
cy.visit('/') | ||
cy.get(`button:contains("${copy.create_report}")`).click() | ||
cy.get('textarea').type('SELECT ROUND(uniform(-90::float, 90::float, random()), 6) AS lat, ROUND(uniform(-180::float, 180::float, random()), 6) AS lon FROM TABLE(GENERATOR(ROWCOUNT => 1000))', { force: true }) | ||
cy.get(`button:contains("${copy.execute}")`).click() | ||
cy.get(`span:contains("${copy.ready}")`, { timeout: 20000 }).should('be.visible') | ||
cy.get('div:contains("1,000 rows")', { timeout: 20000 }).should('be.visible') | ||
|
||
cy.get('button#dekart-refresh-button').click() | ||
cy.get('#dekart-query-status-message').should('contain', 'Running') | ||
cy.get('#dekart-query-status-message').should('contain', 'Ready') | ||
cy.get('div:contains("1,000 rows")', { timeout: 20000 }).should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.