From b50082ab16061db8d1a95443d8a919dbf3540884 Mon Sep 17 00:00:00 2001 From: Eduard Karacharov Date: Sun, 14 Aug 2022 11:59:25 +0300 Subject: [PATCH 01/33] feat(vertica-driver): VerticaDriver --- .github/actions/integration/vertica.sh | 12 ++ packages/cubejs-docker/dev-alpine.Dockerfile | 2 + packages/cubejs-docker/dev.Dockerfile | 2 + packages/cubejs-docker/package.json | 1 + .../src/core/DriverDependencies.js | 1 + .../cubejs-testing-shared/src/db/index.ts | 1 + .../cubejs-testing-shared/src/db/vertica.ts | 22 ++ packages/cubejs-vertica-driver/LICENSE | 202 ++++++++++++++++++ packages/cubejs-vertica-driver/README.md | 20 ++ packages/cubejs-vertica-driver/package.json | 38 ++++ .../src/VerticaDriver.js | 93 ++++++++ .../test/VerticaDriver.test.js | 141 ++++++++++++ yarn.lock | 28 +++ 13 files changed, 563 insertions(+) create mode 100755 .github/actions/integration/vertica.sh create mode 100644 packages/cubejs-testing-shared/src/db/vertica.ts create mode 100644 packages/cubejs-vertica-driver/LICENSE create mode 100644 packages/cubejs-vertica-driver/README.md create mode 100644 packages/cubejs-vertica-driver/package.json create mode 100644 packages/cubejs-vertica-driver/src/VerticaDriver.js create mode 100644 packages/cubejs-vertica-driver/test/VerticaDriver.test.js diff --git a/.github/actions/integration/vertica.sh b/.github/actions/integration/vertica.sh new file mode 100755 index 0000000000000..c9c518accf952 --- /dev/null +++ b/.github/actions/integration/vertica.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -eo pipefail + +# Debug log for test containers +export DEBUG=testcontainers + +export TEST_VERTICA_VERSION=11.1.1-0 + +echo "::group::Vertica ${TEST_VERTICA_VERSION}" +docker pull vertica/vertica-ce:${TEST_VERTICA_VERSION} +yarn lerna run --concurrency 1 --stream --no-prefix integration:vertica +echo "::endgroup::" diff --git a/packages/cubejs-docker/dev-alpine.Dockerfile b/packages/cubejs-docker/dev-alpine.Dockerfile index f8954a4c4918c..715833245f6c9 100644 --- a/packages/cubejs-docker/dev-alpine.Dockerfile +++ b/packages/cubejs-docker/dev-alpine.Dockerfile @@ -66,6 +66,7 @@ COPY packages/cubejs-snowflake-driver/package.json packages/cubejs-snowflake-dri COPY packages/cubejs-sqlite-driver/package.json packages/cubejs-sqlite-driver/package.json COPY packages/cubejs-ksql-driver/package.json packages/cubejs-ksql-driver/package.json COPY packages/cubejs-dbt-schema-extension/package.json packages/cubejs-dbt-schema-extension/package.json +COPY packages/cubejs-vertica-driver/package.json packages/cubejs-vertica-driver/package.json # Skip # COPY packages/cubejs-testing/package.json packages/cubejs-testing/package.json # COPY packages/cubejs-docker/package.json packages/cubejs-docker/package.json @@ -121,6 +122,7 @@ COPY packages/cubejs-snowflake-driver/ packages/cubejs-snowflake-driver/ COPY packages/cubejs-sqlite-driver/ packages/cubejs-sqlite-driver/ COPY packages/cubejs-ksql-driver/ packages/cubejs-ksql-driver/ COPY packages/cubejs-dbt-schema-extension/ packages/cubejs-dbt-schema-extension/ +COPY packages/cubejs-vertica-driver/ packages/cubejs-vertica-driver/ # Skip # COPY packages/cubejs-testing/ packages/cubejs-testing/ # COPY packages/cubejs-docker/ packages/cubejs-docker/ diff --git a/packages/cubejs-docker/dev.Dockerfile b/packages/cubejs-docker/dev.Dockerfile index f050c56e749ba..d060b06b72337 100644 --- a/packages/cubejs-docker/dev.Dockerfile +++ b/packages/cubejs-docker/dev.Dockerfile @@ -71,6 +71,7 @@ COPY packages/cubejs-sqlite-driver/package.json packages/cubejs-sqlite-driver/pa COPY packages/cubejs-ksql-driver/package.json packages/cubejs-ksql-driver/package.json COPY packages/cubejs-dbt-schema-extension/package.json packages/cubejs-dbt-schema-extension/package.json COPY packages/cubejs-jdbc-driver/package.json packages/cubejs-jdbc-driver/package.json +COPY packages/cubejs-vertica-driver/package.json packages/cubejs-vertica-driver/package.json # Skip # COPY packages/cubejs-testing/package.json packages/cubejs-testing/package.json # COPY packages/cubejs-docker/package.json packages/cubejs-docker/package.json @@ -140,6 +141,7 @@ COPY packages/cubejs-ksql-driver/ packages/cubejs-ksql-driver/ COPY packages/cubejs-dbt-schema-extension/ packages/cubejs-dbt-schema-extension/ COPY packages/cubejs-jdbc-driver/ packages/cubejs-jdbc-driver/ COPY packages/cubejs-databricks-jdbc-driver/ packages/cubejs-databricks-jdbc-driver/ +COPY packages/cubejs-vertica-driver/ packages/cubejs-vertica-driver/ # Skip # COPY packages/cubejs-testing/ packages/cubejs-testing/ # COPY packages/cubejs-docker/ packages/cubejs-docker/ diff --git a/packages/cubejs-docker/package.json b/packages/cubejs-docker/package.json index 642311f9af321..774386ce1dad4 100644 --- a/packages/cubejs-docker/package.json +++ b/packages/cubejs-docker/package.json @@ -32,6 +32,7 @@ "@cubejs-backend/server": "^0.30.47", "@cubejs-backend/snowflake-driver": "^0.30.47", "@cubejs-backend/sqlite-driver": "^0.30.47", + "@cubejs-backend/vertica-driver": "^0.30.47", "cubejs-cli": "^0.30.47", "typescript": "~4.1.5" }, diff --git a/packages/cubejs-server-core/src/core/DriverDependencies.js b/packages/cubejs-server-core/src/core/DriverDependencies.js index ec52d97693511..ad5a9887c3329 100644 --- a/packages/cubejs-server-core/src/core/DriverDependencies.js +++ b/packages/cubejs-server-core/src/core/DriverDependencies.js @@ -24,6 +24,7 @@ module.exports = { ksql: '@cubejs-backend/ksql-driver', questdb: '@cubejs-backend/questdb-driver', materialize: '@cubejs-backend/materialize-driver', + vertica: '@cubejs-backend/vertica-driver', // List for JDBC drivers 'databricks-jdbc': '@cubejs-backend/databricks-jdbc-driver', }; diff --git a/packages/cubejs-testing-shared/src/db/index.ts b/packages/cubejs-testing-shared/src/db/index.ts index b5497bd0a78d4..807c6da74a77b 100644 --- a/packages/cubejs-testing-shared/src/db/index.ts +++ b/packages/cubejs-testing-shared/src/db/index.ts @@ -4,3 +4,4 @@ export * from './cubestore'; export * from './questdb'; export * from './materialize'; export * from './crate'; +export * from './vertica'; diff --git a/packages/cubejs-testing-shared/src/db/vertica.ts b/packages/cubejs-testing-shared/src/db/vertica.ts new file mode 100644 index 0000000000000..26a1babf3d389 --- /dev/null +++ b/packages/cubejs-testing-shared/src/db/vertica.ts @@ -0,0 +1,22 @@ +import { GenericContainer } from 'testcontainers'; +import { LogWaitStrategy } from 'testcontainers/dist/wait-strategy'; + +import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract'; + +type Vertica = DBRunnerContainerOptions & { + version?: string, +}; + +export class VerticaDBRunner extends DbRunnerAbstract { + public static startContainer() { + const version = process.env.TEST_VERTICA_VERSION || '11.1.1-0'; + + const container = new GenericContainer(`vertica/vertica-ce:${version}`) + .withEnv('VERTICA_DB_NAME', 'test') + .withExposedPorts(5433) + .withStartupTimeout(60 * 1000) + .withWaitStrategy(new LogWaitStrategy("Node Status: v_test_node0001: (UP)")) + + return container.start(); + } +} diff --git a/packages/cubejs-vertica-driver/LICENSE b/packages/cubejs-vertica-driver/LICENSE new file mode 100644 index 0000000000000..da67a9a3301be --- /dev/null +++ b/packages/cubejs-vertica-driver/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Cube Dev, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/packages/cubejs-vertica-driver/README.md b/packages/cubejs-vertica-driver/README.md new file mode 100644 index 0000000000000..4e52c933aca42 --- /dev/null +++ b/packages/cubejs-vertica-driver/README.md @@ -0,0 +1,20 @@ +

Cube.js

+ +[Website](https://cube.dev) • [Docs](https://cube.dev/docs) • [Blog](https://cube.dev/blog) • [Slack](https://slack.cube.dev) • [Discourse](https://forum.cube.dev/) • [Twitter](https://twitter.com/thecubejs) + +[![npm version](https://badge.fury.io/js/%40cubejs-backend%2Fserver.svg)](https://badge.fury.io/js/%40cubejs-backend%2Fserver) +[![GitHub Actions](https://github.com/cube-js/cube.js/workflows/Build/badge.svg)](https://github.com/cube-js/cube.js/actions?query=workflow%3ABuild+branch%3Amaster) + +# Cube.js Vertica Database Driver + +Cube.js Vertica driver that uses [vertica-nodejs](https://github.com/vertica/vertica-nodejs) package. + +## Support + +This package is **community supported** and should be used at your own risk. + +While the Cube Dev team is happy to review and accept future community contributions, we don't have active plans for further development. This includes bug fixes unless they affect different parts of Cube.js. **We're looking for maintainers for this package.** If you'd like to become a maintainer, please contact us in Cube.js Slack. + +## License + +Cube.js Vertica Database Driver is [Apache 2.0 licensed](./LICENSE). diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json new file mode 100644 index 0000000000000..35ea039727b6d --- /dev/null +++ b/packages/cubejs-vertica-driver/package.json @@ -0,0 +1,38 @@ +{ + "name": "@cubejs-backend/vertica-driver", + "description": "Cube.js Vertica database driver", + "author": "Cube Dev, Inc.", + "version": "0.30.47", + "repository": { + "type": "git", + "url": "https://github.com/cube-js/cube.js.git", + "directory": "packages/cubejs-vertica-driver" + }, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + }, + "main": "src/VerticaDriver.js", + "scripts": { + "integration": "npm run integration:vertica", + "integration:vertica": "jest --verbose ./test", + "lint": "eslint **/*.js", + "lint:fix": "eslint --fix **/*.js" + }, + "dependencies": { + "@cubejs-backend/query-orchestrator": "^0.30.47", + "vertica-nodejs": "^1.0.0" + }, + "license": "Apache-2.0", + "devDependencies": { + "@cubejs-backend/linter": "^0.30.0", + "@cubejs-backend/testing-shared": "^0.30.47", + "jest": "^26.6.3", + "testcontainers": "^8.4.0" + }, + "publishConfig": { + "access": "public" + }, + "eslintConfig": { + "extends": "../cubejs-linter" + } +} diff --git a/packages/cubejs-vertica-driver/src/VerticaDriver.js b/packages/cubejs-vertica-driver/src/VerticaDriver.js new file mode 100644 index 0000000000000..acc0d049259d0 --- /dev/null +++ b/packages/cubejs-vertica-driver/src/VerticaDriver.js @@ -0,0 +1,93 @@ +const { Pool } = require('vertica-nodejs'); +const { BaseDriver } = require('@cubejs-backend/query-orchestrator'); + +const defaultGenericType = 'text'; +const VerticaTypeToGenericType = { + boolean: 'boolean', + int: 'bigint', + float: 'double', + date: 'date', + timestamp: 'timestamp', + timestamptz: 'timestamp', + numeric: 'decimal', +}; + +class VerticaDriver extends BaseDriver { + constructor(config) { + super(); + this.pool = new Pool({ + max: + process.env.CUBEJS_DB_MAX_POOL && parseInt(process.env.CUBEJS_DB_MAX_POOL, 10) || + config.maxPoolSize || 8, + host: process.env.CUBEJS_DB_HOST, + database: process.env.CUBEJS_DB_NAME, + port: process.env.CUBEJS_DB_PORT, + user: process.env.CUBEJS_DB_USER, + password: process.env.CUBEJS_DB_PASS, + ssl: this.getSslOptions(), + ...config, + }); + } + + async query(query, values) { + const queryResult = await this.pool.query(query, values); + return queryResult.rows; + } + + readOnly() { + return true; + } + + async testConnection() { + return this.query('select 1 as n'); + } + + async release() { + this.pool.end(); + } + + informationSchemaQuery() { + return ` + SELECT + column_name, + table_name, + table_schema, + data_type + FROM v_catalog.columns; + `; + } + + async createSchemaIfNotExists(schemaName) { + return this.query(`CREATE SCHEMA IF NOT EXISTS ${schemaName};`); + } + + getTablesQuery(schemaName) { + return this.query( + `SELECT table_name FROM v_catalog.tables WHERE table_schema = ${this.param(0)}`, + [schemaName] + ); + } + + async tableColumnTypes(table) { + const [schema, name] = table.split('.'); + + const columns = await this.query( + `SELECT + column_name, + data_type + FROM v_catalog.columns + WHERE table_name = ${this.param(0)} + AND table_schema = ${this.param(1)}`, + [name, schema] + ); + + return columns.map(c => ({ name: c.column_name, type: this.toGenericType(c.data_type) })); + } + + toGenericType(columnType) { + const type = columnType.toLowerCase().replace(/\([0-9,]+\)/, ''); + return VerticaTypeToGenericType[type] || defaultGenericType; + } +} + +module.exports = VerticaDriver; diff --git a/packages/cubejs-vertica-driver/test/VerticaDriver.test.js b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js new file mode 100644 index 0000000000000..cd34e2c2f26da --- /dev/null +++ b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js @@ -0,0 +1,141 @@ +/* globals describe, afterAll, beforeAll, test, expect, jest */ +const { VerticaDBRunner } = require('@cubejs-backend/testing-shared'); +const VerticaDriver = require('../src/VerticaDriver.js'); + +describe('VerticaDriver', () => { + let container; + let driver; + + jest.setTimeout(2 * 60 * 1000); + + beforeAll(async () => { + container = await VerticaDBRunner.startContainer(); + driver = new VerticaDriver({ + host: container.getHost(), + port: container.getMappedPort(5433), + user: 'dbadmin', + password: '', + database: 'test', + }); + }); + + afterAll(async () => { + await driver.release(); + + if (container) { + await container.stop(); + } + }); + + test('test connection', async () => { + const ping = await driver.testConnection(); + + expect(ping).toEqual([ + { n: 1 } + ]); + }); + + test('simple query', async () => { + const data = await driver.query( + ` + SELECT + '2020-01-01'::date AS date, + '2020-01-01 00:00:00'::timestamp AS timestamp, + '2020-01-01 21:30:45.015004'::timestamp AS timestamp_us, + '2020-01-01 00:00:00+02'::timestamptz AS timestamptz, + '1.01'::decimal(10,2) AS decimal, + 1::int AS integer + `, + [] + ); + + expect(data).toEqual([ + { + date: '2020-01-01', + timestamp: '2020-01-01 00:00:00', + timestamp_us: '2020-01-01 21:30:45.015004', + timestamptz: '2019-12-31 22:00:00+00', + decimal: '1.01', + integer: 1, + } + ]); + }); + + test('parameterized query', async () => { + const data = await driver.query( + ` + WITH testdata AS ( + select 1 as id, 'foo' as val union all + select 2 as id, 'bar' as val union all + select 3 as id, 'baz' as val union all + select 4 as id, 'qux' as val + ) + SELECT * + FROM testdata + WHERE id = ? + OR val = ? + ORDER BY id + `, + [1, 'baz'] + ); + + expect(data).toEqual([ + { id: 1, val: 'foo' }, + { id: 3, val: 'baz' }, + ]); + }); + + test('get tables', async () => { + await driver.query('DROP SCHEMA IF EXISTS test_get_tables CASCADE;'); + await driver.query('CREATE SCHEMA test_get_tables;'); + await driver.query('CREATE TABLE test_get_tables.tab (id int);'); + + const tables = await driver.getTablesQuery('test_get_tables'); + + expect(tables).toEqual([ + { table_name: 'tab' }, + ]); + }); + + test('table column types', async () => { + await driver.query('DROP SCHEMA IF EXISTS test_column_types CASCADE;'); + await driver.query('CREATE SCHEMA test_column_types;'); + await driver.query(` + CREATE TABLE test_column_types.tab ( + integer_col int, + date_col date, + timestamp_col timestamp, + decimal_col decimal(10,2), + varchar_col varchar(64), + char_col char(2), + set_col set[int8], + array_col array[int8] + ); + `); + + const columns = await driver.tableColumnTypes('test_column_types.tab'); + + expect(columns).toEqual([ + { name: 'integer_col', type: 'bigint' }, + { name: 'date_col', type: 'date' }, + { name: 'timestamp_col', type: 'timestamp' }, + { name: 'decimal_col', type: 'decimal' }, + { name: 'varchar_col', type: 'text' }, + { name: 'char_col', type: 'text' }, + { name: 'set_col', type: 'text' }, + { name: 'array_col', type: 'text' }, + ]); + }); + + test('create schema', async () => { + await driver.createSchemaIfNotExists('new_schema'); + await driver.createSchemaIfNotExists('new_schema'); + const schema = await driver.query(` + SELECT count(1) AS cnt + FROM v_catalog.schemata + WHERE schema_name = 'new_schema'; + `); + + expect(schema).toEqual([{ cnt: 1 }]); + }); +}); diff --git a/yarn.lock b/yarn.lock index ffa1634d8fa9f..69c12d6ccc95c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -27787,6 +27787,21 @@ uuid@^3.0.1, uuid@^3.1.0, uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== +v-connection-string@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/v-connection-string/-/v-connection-string-1.0.0.tgz#84d22a22b65223d198a352d088577d5f85ab6639" + integrity sha512-vbXmdI6Zhk+xcObmBz8T0/WGtkzuf84iTcE4XoV60Mq3/Lgue2BlC9RcWxaW2rExSrOVquSNxnbkkKO07fCx+Q== + +v-pool@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/v-pool/-/v-pool-1.0.0.tgz#25efd01e79a1a39e402da1dfb59ca1b1895b98db" + integrity sha512-n1vUR3oRA3qYhYYo2W8rmGi+wXCY8QJtfGV4hpVgHP28sMMhGiBPsMoC0uTp0hufUiBcNrX3HfCV4YycKyLnSw== + +v-protocol@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/v-protocol/-/v-protocol-1.0.0.tgz#b5eee0be666b2a291f9363f5c11cd4c11a9322e5" + integrity sha512-yM9yvMS5FOSoV8MZiVpGGieFmXSGakE4ttwnEv61T3xjqK9DWM61id0g5YNIwsXSIHSLllNI8/hUCv/AHu7nKA== + v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" @@ -27840,6 +27855,19 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" +vertica-nodejs@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/vertica-nodejs/-/vertica-nodejs-1.0.0.tgz#f4b9c3ea19de1919cdaf2311b8a4d0e9a054374e" + integrity sha512-/H/AmgALkWeg2MpRAPlgPPjMrcbT39jJ8khhR/jglwhMh6zU0erO1Dij5kAYy3JDIgeF8kA4Amiwf8ejusZo+Q== + dependencies: + buffer-writer "2.0.0" + packet-reader "1.0.0" + pg-types "^2.1.0" + pgpass "1.x" + v-connection-string "1.0.0" + v-pool "1.0.0" + v-protocol "1.0.0" + vm-browserify@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" From f5ecb77d133502f34b4749fb3cd865ab187aceda Mon Sep 17 00:00:00 2001 From: Eduard Karacharov Date: Sun, 2 Oct 2022 18:31:46 +0300 Subject: [PATCH 02/33] fixed linter error --- packages/cubejs-testing-shared/src/db/vertica.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cubejs-testing-shared/src/db/vertica.ts b/packages/cubejs-testing-shared/src/db/vertica.ts index 26a1babf3d389..0f277219adc04 100644 --- a/packages/cubejs-testing-shared/src/db/vertica.ts +++ b/packages/cubejs-testing-shared/src/db/vertica.ts @@ -15,7 +15,7 @@ export class VerticaDBRunner extends DbRunnerAbstract { .withEnv('VERTICA_DB_NAME', 'test') .withExposedPorts(5433) .withStartupTimeout(60 * 1000) - .withWaitStrategy(new LogWaitStrategy("Node Status: v_test_node0001: (UP)")) + .withWaitStrategy(new LogWaitStrategy("Node Status: v_test_node0001: (UP)")); return container.start(); } From 098f884331d33d2767f46b7449d9d8f2e51254b3 Mon Sep 17 00:00:00 2001 From: Eduard Karacharov Date: Mon, 10 Oct 2022 10:33:31 +0300 Subject: [PATCH 03/33] fix dependencies versions --- packages/cubejs-vertica-driver/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index ebc747440fff7..1732711fd1ca0 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", - "version": "0.31.1", + "version": "0.31.3", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", @@ -19,13 +19,13 @@ "lint:fix": "eslint --fix **/*.js" }, "dependencies": { - "@cubejs-backend/query-orchestrator": "^0.31.1", + "@cubejs-backend/query-orchestrator": "^0.31.3", "vertica-nodejs": "^1.0.1" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "^0.31.1", - "@cubejs-backend/testing-shared": "^0.31.1", + "@cubejs-backend/linter": "^0.31.0", + "@cubejs-backend/testing-shared": "^0.31.3", "jest": "^26.6.3", "testcontainers": "^8.4.0" }, From 6818253a71f44798360b76fafef05b8e2f28cd22 Mon Sep 17 00:00:00 2001 From: Eduard Karacharov Date: Thu, 13 Oct 2022 09:41:32 +0300 Subject: [PATCH 04/33] driver & smoke tests --- .github/workflows/push.yml | 1 + .../birdbox-fixtures/driver-test-data/CAST.js | 8 + .../birdbox-fixtures/vertica.yml | 44 + .../birdbox-fixtures/vertica/schema/Orders.js | 34 + packages/cubejs-testing/package.json | 4 + .../cubejs-testing/src/REQUIRED_ENV_VARS.ts | 1 + packages/cubejs-testing/src/birdbox.ts | 5 +- .../__snapshots__/driver-vertica.test.ts.snap | 10417 ++++++++++++++++ .../cubejs-testing/test/driver-test-suite.ts | 3 +- .../test/driver-vertica.test.ts | 14 + .../cubejs-testing/test/smoke-vertica.test.ts | 104 + 11 files changed, 10632 insertions(+), 3 deletions(-) create mode 100644 packages/cubejs-testing/birdbox-fixtures/vertica.yml create mode 100644 packages/cubejs-testing/birdbox-fixtures/vertica/schema/Orders.js create mode 100644 packages/cubejs-testing/test/__snapshots__/driver-vertica.test.ts.snap create mode 100644 packages/cubejs-testing/test/driver-vertica.test.ts create mode 100644 packages/cubejs-testing/test/smoke-vertica.test.ts diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c618ad6a85d32..4e34683178197 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -434,6 +434,7 @@ jobs: yarn run smoke:questdb yarn run smoke:multidb yarn run smoke:lambda + yarn run smoke:vertica docker-image-latest-set-tag: # At least git should be completed pushed up until this moment diff --git a/packages/cubejs-testing/birdbox-fixtures/driver-test-data/CAST.js b/packages/cubejs-testing/birdbox-fixtures/driver-test-data/CAST.js index 218ebde846363..592f36cc2a1b5 100644 --- a/packages/cubejs-testing/birdbox-fixtures/driver-test-data/CAST.js +++ b/packages/cubejs-testing/birdbox-fixtures/driver-test-data/CAST.js @@ -23,6 +23,10 @@ export const DB_CAST = { SELECT_PREFIX: 'with tmp_tbl as (\n', SELECT_SUFFIX: ')\nselect * from tmp_tbl', }, + vertica: { + SELECT_PREFIX: '', + SELECT_SUFFIX: '', + }, }; export const DATE_CAST = { athena: { @@ -49,4 +53,8 @@ export const DATE_CAST = { DATE_PREFIX: 'to_date(', DATE_SUFFIX: ', \'YYYY-MM-DD\')', }, + vertica: { + DATE_PREFIX: 'to_date(', + DATE_SUFFIX: ', \'YYYY-MM-DD\')', + }, }; diff --git a/packages/cubejs-testing/birdbox-fixtures/vertica.yml b/packages/cubejs-testing/birdbox-fixtures/vertica.yml new file mode 100644 index 0000000000000..9b602497d7cb8 --- /dev/null +++ b/packages/cubejs-testing/birdbox-fixtures/vertica.yml @@ -0,0 +1,44 @@ +version: "2.2" + +services: + cube: + container_name: birdbox-cube + image: ${BIRDBOX_CUBEJS_REGISTRY_PATH}cubejs/cube:${BIRDBOX_CUBEJS_VERSION:-latest} + environment: + CUBEJS_DB_TYPE: vertica + + CUBEJS_DB_HOST: db + CUBEJS_DB_PORT: 5433 + CUBEJS_DB_NAME: vmart + CUBEJS_DB_USER: dbadmin + CUBEJS_DB_PASS: + + CUBEJS_DEV_MODE: "true" + CUBEJS_WEB_SOCKETS: "true" + CUBEJS_API_SECRET: mysupersecret + volumes: + - ./vertica/schema:/cube/conf/schema + ports: + - "4000" + depends_on: + db: + condition: service_healthy + links: + - db + restart: always + + # Database instances, for troubleshooting. + # NOT required. + # Tests provide db instances via testcontainers, in both LOCAL and DOCKER modes. + + db: + container_name: birdbox-db + image: vertica/vertica-ce:11.1.1-0 + ports: + - "5433" + restart: always + healthcheck: + test: ["CMD-SHELL", "/opt/vertica/bin/vsql -c 'select 1;' || exit 1"] + interval: 10s + timeout: 5s + retries: 5 diff --git a/packages/cubejs-testing/birdbox-fixtures/vertica/schema/Orders.js b/packages/cubejs-testing/birdbox-fixtures/vertica/schema/Orders.js new file mode 100644 index 0000000000000..0925c4e3a172f --- /dev/null +++ b/packages/cubejs-testing/birdbox-fixtures/vertica/schema/Orders.js @@ -0,0 +1,34 @@ +cube(`Orders`, { + sql: ` + with orders as ( + select 1 as id, 100 as amount, 'new' status + UNION ALL + select 2 as id, 200 as amount, 'new' status + UNION ALL + select 3 as id, 300 as amount, 'processed' status + UNION ALL + select 4 as id, 500 as amount, 'processed' status + UNION ALL + select 5 as id, 600 as amount, 'shipped' status + ) + select * from orders + `, + measures: { + count: { + type: `count`, + }, + totalAmount: { + sql: `amount`, + type: `sum`, + }, + toRemove: { + type: `count`, + }, + }, + dimensions: { + status: { + sql: `status`, + type: `string`, + }, + }, +}); diff --git a/packages/cubejs-testing/package.json b/packages/cubejs-testing/package.json index c6131851c7f56..5c8a21274281a 100644 --- a/packages/cubejs-testing/package.json +++ b/packages/cubejs-testing/package.json @@ -46,6 +46,8 @@ "driver:questdb:snap": "jest --verbose --updateSnapshot -i dist/test/driver-questdb.test.js", "driver:databricks": "jest --verbose -i dist/test/driver-databricks.test.js", "driver:databricks:snap": "jest --verbose --updateSnapshot -i dist/test/driver-databricks.test.js", + "driver:vertica": "jest --verbose -i dist/test/driver-vertica.test.js", + "driver:vertica:snap": "jest --verbose --updateSnapshot -i dist/test/driver-vertica.test.js", "smoke:athena": "jest --verbose -i dist/test/smoke-athena.test.js", "smoke:athena:snapshot": "jest --verbose --updateSnapshot -i dist/test/smoke-athena.test.js", "smoke:bigquery": "jest --verbose -i dist/test/smoke-bigquery.test.js", @@ -65,6 +67,8 @@ "smoke:postgres": "jest --verbose -i dist/test/smoke-postgres.test.js", "smoke:redshift": "jest --verbose -i dist/test/smoke-redshift.test.js", "smoke:redshift:snapshot": "jest --verbose --updateSnapshot -i dist/test/smoke-redshift.test.js", + "smoke:vertica": "jest --verbose -i dist/test/smoke-vertica.test.js", + "smoke:vertica:snapshot": "jest --verbose --updateSnapshot -i dist/test/smoke-vertica.test.js", "smoke:cubesql": "jest --verbose --forceExit -i dist/test/smoke-cubesql.test.js", "smoke:cubesql:snapshot": "jest --verbose --forceExit --updateSnapshot -i dist/test/smoke-cubesql.test.js" }, diff --git a/packages/cubejs-testing/src/REQUIRED_ENV_VARS.ts b/packages/cubejs-testing/src/REQUIRED_ENV_VARS.ts index a963856a8b7bf..06402b00eb2cb 100644 --- a/packages/cubejs-testing/src/REQUIRED_ENV_VARS.ts +++ b/packages/cubejs-testing/src/REQUIRED_ENV_VARS.ts @@ -44,4 +44,5 @@ export const REQUIRED_ENV_VARS: {[key: string]: string[]} = { 'CUBEJS_DB_EXPORT_BUCKET_AWS_SECRET', 'CUBEJS_DB_EXPORT_BUCKET_AWS_REGION', ], + vertica: [], }; diff --git a/packages/cubejs-testing/src/birdbox.ts b/packages/cubejs-testing/src/birdbox.ts index 830267df94a7f..aac8588c814be 100644 --- a/packages/cubejs-testing/src/birdbox.ts +++ b/packages/cubejs-testing/src/birdbox.ts @@ -48,7 +48,7 @@ interface Args { log: Log, } -export type DriverType = 'postgresql' | 'postgres' | 'multidb' | 'materialize' | 'crate' | 'bigquery' | 'athena' | 'postgresql-cubestore' | 'firebolt' | 'questdb' | 'redshift' | 'databricks-jdbc'; +export type DriverType = 'postgresql' | 'postgres' | 'multidb' | 'materialize' | 'crate' | 'bigquery' | 'athena' | 'postgresql-cubestore' | 'firebolt' | 'questdb' | 'redshift' | 'databricks-jdbc' | 'vertica'; export type Schemas = string[]; @@ -102,7 +102,8 @@ const driverNameToFolderNameMapper: Record = { firebolt: 'postgresql', questdb: 'postgresql', redshift: 'postgresql', - 'databricks-jdbc': 'databricks-jdbc' + 'databricks-jdbc': 'databricks-jdbc', + vertica: 'vertica' }; /** diff --git a/packages/cubejs-testing/test/__snapshots__/driver-vertica.test.ts.snap b/packages/cubejs-testing/test/__snapshots__/driver-vertica.test.ts.snap new file mode 100644 index 0000000000000..4d6d62dc4fec6 --- /dev/null +++ b/packages/cubejs-testing/test/__snapshots__/driver-vertica.test.ts.snap @@ -0,0 +1,10417 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`vertica driver tests filtering Customers: contains + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: contains + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: contains + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: contains + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: contains + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Customers: contains + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Customers: endsWith filter + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: endsWith filter + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: endsWith filter + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: endsWith filter + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests filtering Customers: endsWith filter + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Customers: endsWith filter + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Customers: startsWith + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, +] +`; + +exports[`vertica driver tests filtering Customers: startsWith + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, +] +`; + +exports[`vertica driver tests filtering Customers: startsWith + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, +] +`; + +exports[`vertica driver tests filtering Customers: startsWith + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, +] +`; + +exports[`vertica driver tests filtering Customers: startsWith + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Customers: startsWith + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering ECommerce: contains dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: contains dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: contains dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: contains dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: contains dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering ECommerce: contains dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering ECommerce: endsWith + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: endsWith + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: endsWith + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: endsWith + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: endsWith + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering ECommerce: endsWith + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering ECommerce: startsWith + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: startsWith + dimensions, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: startsWith + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: startsWith + dimensions, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests filtering ECommerce: startsWith + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering ECommerce: startsWith + dimensions, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Products: contains + dimentions + order, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, +] +`; + +exports[`vertica driver tests filtering Products: contains + dimentions + order, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, +] +`; + +exports[`vertica driver tests filtering Products: contains + dimentions + order, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, +] +`; + +exports[`vertica driver tests filtering Products: contains + dimentions + order, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, +] +`; + +exports[`vertica driver tests filtering Products: contains + dimentions + order, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Products: contains + dimentions + order, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Products: endsWith filter + dimentions + order, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests filtering Products: endsWith filter + dimentions + order, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests filtering Products: endsWith filter + dimentions + order, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests filtering Products: endsWith filter + dimentions + order, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests filtering Products: endsWith filter + dimentions + order, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Products: endsWith filter + dimentions + order, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Products: startsWith filter + dimentions + order, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, +] +`; + +exports[`vertica driver tests filtering Products: startsWith filter + dimentions + order, first_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, +] +`; + +exports[`vertica driver tests filtering Products: startsWith filter + dimentions + order, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, +] +`; + +exports[`vertica driver tests filtering Products: startsWith filter + dimentions + order, second_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, +] +`; + +exports[`vertica driver tests filtering Products: startsWith filter + dimentions + order, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests filtering Products: startsWith filter + dimentions + order, third_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = `Array []`; + +exports[`vertica driver tests querying Customers: dimensions_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimensions_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + limit_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + limit_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order + limit + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order + limit + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order + limit + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order + limit + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests querying Customers: dimentions + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: count by cities + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.city": "Columbus", + "ECommerce.count": 12, + }, + Object { + "ECommerce.city": "New York City", + "ECommerce.count": 5, + }, + Object { + "ECommerce.city": "Detroit", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "Philadelphia", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "San Francisco", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "Arlington", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Auburn", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Bakersfield", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Baltimore", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Bowling", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Dallas", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Decatur", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Glendale", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Houston", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lafayette", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lakewood", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lorain", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Los Angeles", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Louisville", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Marion", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Morristown", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Oakland", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Olympia", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Omaha", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Provo", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Vancouver", + "ECommerce.count": 1, + }, +] +`; + +exports[`vertica driver tests querying ECommerce: count by cities + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.city": "Columbus", + "ECommerce.count": 12, + }, + Object { + "ECommerce.city": "New York City", + "ECommerce.count": 5, + }, + Object { + "ECommerce.city": "Detroit", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "Philadelphia", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "San Francisco", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "Arlington", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Auburn", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Bakersfield", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Baltimore", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Bowling", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Dallas", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Decatur", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Glendale", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Houston", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lafayette", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lakewood", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lorain", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Los Angeles", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Louisville", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Marion", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Morristown", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Oakland", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Olympia", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Omaha", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Provo", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Vancouver", + "ECommerce.count": 1, + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimensions_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "21.58240", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech diNovo Edge Keyboard", + "ECommerce.profit": "517.47930", + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": "2249.91000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "134.53020", + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": "498.26000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "569.99050", + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": "2399.96000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": "-272.58000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": "649.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "6.19920", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": "18.36800", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": "26.99730", + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": "239.97600", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "225.60000", + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": "480.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": "0.10000", + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "24.20120", + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": "128.12400", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": "-5.00980", + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": "400.78400", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimensions_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "21.58240", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech diNovo Edge Keyboard", + "ECommerce.profit": "517.47930", + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": "2249.91000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "134.53020", + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": "498.26000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "569.99050", + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": "2399.96000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": "-272.58000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": "649.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "6.19920", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": "18.36800", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": "26.99730", + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": "239.97600", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "225.60000", + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": "480.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": "0.10000", + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "24.20120", + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": "128.12400", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": "-5.00980", + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": "400.78400", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + limit_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + limit_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order + limit + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order + limit + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order + limit + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order + limit + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order + total + offset_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "21.58240", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech diNovo Edge Keyboard", + "ECommerce.profit": "517.47930", + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": "2249.91000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "134.53020", + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": "498.26000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "569.99050", + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": "2399.96000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": "-272.58000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": "649.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "6.19920", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": "18.36800", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": "26.99730", + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": "239.97600", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "225.60000", + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": "480.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": "0.10000", + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "24.20120", + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": "128.12400", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": "-5.00980", + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": "400.78400", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "21.58240", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech diNovo Edge Keyboard", + "ECommerce.profit": "517.47930", + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": "2249.91000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "134.53020", + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": "498.26000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "569.99050", + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": "2399.96000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": "-272.58000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": "649.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "6.19920", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": "18.36800", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": "26.99730", + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": "239.97600", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "225.60000", + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": "480.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": "0.10000", + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "24.20120", + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": "128.12400", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": "-5.00980", + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": "400.78400", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "21.58240", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech diNovo Edge Keyboard", + "ECommerce.profit": "517.47930", + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": "2249.91000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "134.53020", + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": "498.26000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "569.99050", + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": "2399.96000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": "-272.58000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": "649.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "6.19920", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": "18.36800", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": "26.99730", + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": "239.97600", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "225.60000", + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": "480.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": "0.10000", + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "24.20120", + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": "128.12400", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": "-5.00980", + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": "400.78400", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying ECommerce: dimentions + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": "21.09800", + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": "210.98000", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "8.55680", + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": "48.89600", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": "4.06870", + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": "14.03000", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "3.66320", + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": "9.64000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "-2.11950", + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": "11.30400", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": "5.20260", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": "14.35200", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": "13.60400", + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": "71.60000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": "81.43200", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": "180.96000", + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "77.57640", + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": "1292.94000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": "494.97250", + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": "1979.89000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "9.96520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": "113.88800", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "10.39040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": "-3.35060", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": "24.36800", + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "1.17750", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": "23.55000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "2.72600", + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": "9.40000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": "3.92960", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": "39.29600", + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": "60.54880", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": "232.88000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": "134.99250", + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": "539.97000", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "21.58240", + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech diNovo Edge Keyboard", + "ECommerce.profit": "517.47930", + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": "2249.91000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "134.53020", + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": "498.26000", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": "8.50250", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": "44.75000", + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": "1.73520", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": "7.71200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "44.97500", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": "179.90000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": "1.09040", + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": "3.76000", + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "15.49800", + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": "45.92000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "569.99050", + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": "2399.96000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": "-272.58000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": "649.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": "0.70650", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": "14.13000", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "6.41760", + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": "36.67200", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": "467.99220", + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": "1199.98000", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": "129.29400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": "2154.90000", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": "0.60000", + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": "-19.86400", + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": "30.56000", + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": "6.19920", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": "18.36800", + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": "26.99730", + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": "239.97600", + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": "0.00000", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "225.60000", + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": "480.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": "0.50000", + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": "-7.20000", + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": "120.00000", + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": "0.10000", + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": "24.20120", + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": "128.12400", + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": "-5.00980", + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": "400.78400", + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.40000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": "74.99850", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": "899.98200", + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": "0.20000", + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": "5.39700", + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": "86.35200", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order + limit + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order + limit + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order + limit_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order + limit_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Project Tote Personal File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Recycled Eldon Regeneration Jumbo File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Canon PC1080F Personal Copier", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order + total_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Project Tote Personal File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Recycled Eldon Regeneration Jumbo File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Canon PC1080F Personal Copier", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"false","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Project Tote Personal File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Recycled Eldon Regeneration Jumbo File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Canon PC1080F Personal Copier", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`vertica driver tests querying Products: dimentions + order_{"CUBEJS_DEV_MODE":"true","CUBEJS_WEB_SOCKETS":"true","CUBEJS_EXTERNAL_DEFAULT":"true","CUBEJS_SCHEDULED_REFRESH_DEFAULT":"true","CUBEJS_REFRESH_WORKER":"true","CUBEJS_ROLLUP_ONLY":"false"}: query 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Project Tote Personal File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Recycled Eldon Regeneration Jumbo File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech diNovo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Canon PC1080F Personal Copier", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; diff --git a/packages/cubejs-testing/test/driver-test-suite.ts b/packages/cubejs-testing/test/driver-test-suite.ts index 0d5c1e43c83e9..45347d4fb097c 100644 --- a/packages/cubejs-testing/test/driver-test-suite.ts +++ b/packages/cubejs-testing/test/driver-test-suite.ts @@ -13,7 +13,8 @@ type SupportedDriverType = 'firebolt' | 'bigquery' | 'athena' | - 'databricks-jdbc'; + 'databricks-jdbc' | + 'vertica'; type TestSuite = { config?: Partial diff --git a/packages/cubejs-testing/test/driver-vertica.test.ts b/packages/cubejs-testing/test/driver-vertica.test.ts new file mode 100644 index 0000000000000..f0f98d7e28c8c --- /dev/null +++ b/packages/cubejs-testing/test/driver-vertica.test.ts @@ -0,0 +1,14 @@ +import { mainTestSet } from './driverTests/testSets'; +import { executeTestSuite } from './driver-test-suite'; + +executeTestSuite({ + type: 'vertica', + tests: mainTestSet, + +}); + +executeTestSuite({ + type: 'vertica', + tests: mainTestSet, + config: { CUBEJS_EXTERNAL_DEFAULT: 'true' } +}); diff --git a/packages/cubejs-testing/test/smoke-vertica.test.ts b/packages/cubejs-testing/test/smoke-vertica.test.ts new file mode 100644 index 0000000000000..32fd886d634d7 --- /dev/null +++ b/packages/cubejs-testing/test/smoke-vertica.test.ts @@ -0,0 +1,104 @@ +import fetch from 'node-fetch'; +import { StartedTestContainer } from 'testcontainers'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { afterAll, beforeAll, expect, jest } from '@jest/globals'; +import cubejs, { CubejsApi, Query } from '@cubejs-client/core'; +import { VerticaDBRunner } from '@cubejs-backend/testing-shared'; +import { BirdBox, getBirdbox } from '../src'; +import { DEFAULT_CONFIG } from './smoke-tests'; + +describe('vertica pa', () => { + jest.setTimeout(60 * 5 * 1000); + let db: StartedTestContainer; + let birdbox: BirdBox; + let client: CubejsApi; + + beforeAll(async () => { + db = await VerticaDBRunner.startContainer(); + birdbox = await getBirdbox( + 'vertica', + { + ...DEFAULT_CONFIG, + CUBEJS_DB_HOST: db.getHost(), + CUBEJS_DB_PORT: `${db.getMappedPort(5433)}`, + CUBEJS_DB_NAME: 'test', + CUBEJS_DB_USER: 'dbadmin', + CUBEJS_DB_PASS: '', + CUBEJS_ROLLUP_ONLY: 'true', + CUBEJS_REFRESH_WORKER: 'false', + }, + { + schemaDir: 'smoke/schema', + cubejsConfig: 'smoke/cube.js', + }, + ); + client = cubejs(async () => 'test', { + apiUrl: birdbox.configuration.apiUrl, + }); + }); + + afterAll(async () => { + await birdbox.stop(); + await db.stop(); + }); + + test('basic pa', async () => { + const query: Query = { + measures: ['OrdersPA.count'], + dimensions: ['OrdersPA.status'], + order: { + 'OrdersPA.status': 'asc', + }, + }; + const result = await client.load(query, {}); + expect(result.rawData()).toEqual([ + { + 'OrdersPA.count': '2', + 'OrdersPA.status': 'new', + }, + { + 'OrdersPA.count': '2', + 'OrdersPA.status': 'processed', + }, + { + 'OrdersPA.count': '1', + 'OrdersPA.status': 'shipped', + }, + ]); + }); + + test('preview', async () => { + const id = 'OrdersPA.ordersByStatus'; + + const partitions = await (await fetch(`${birdbox.configuration.systemUrl}/pre-aggregations/partitions`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + query: { + preAggregations: [ + { + id + } + ] + } + }), + })).json(); + const partition = partitions.preAggregationPartitions[0].partitions[0]; + const { timezone } = partition; + const versionEntry = partition.versionEntries[0]; + expect(versionEntry.build_range_end).not.toBeDefined(); + + const preview = await (await fetch(`${birdbox.configuration.systemUrl}/pre-aggregations/preview`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + query: { + preAggregationId: id, + timezone, + versionEntry, + } + }), + })).json(); + expect(preview.preview).toBeDefined(); + }); +}); From 9d6f43fbb62ff2b2a4b3c0ea1401f4a4cb42d2e4 Mon Sep 17 00:00:00 2001 From: Eduard Karacharov Date: Thu, 13 Oct 2022 09:59:24 +0300 Subject: [PATCH 05/33] vertica driver added to integration tests --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4e34683178197..b4809e3df5929 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -310,7 +310,7 @@ jobs: node-version: [14.x] db: [ 'clickhouse', 'druid', 'elasticsearch', 'mssql', 'mysql', 'postgres', 'prestodb', - 'mysql-aurora-serverless', 'cubestore', 'crate' + 'mysql-aurora-serverless', 'cubestore', 'crate', 'vertica' ] fail-fast: false From 2eb00eb9664bf45751edc014ac78f41e5668e634 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 10 Oct 2023 16:13:36 +1000 Subject: [PATCH 06/33] add vertica to smoke test --- .github/actions/smoke.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/smoke.sh b/.github/actions/smoke.sh index e0a3f576f13c7..50b754c24d11a 100755 --- a/.github/actions/smoke.sh +++ b/.github/actions/smoke.sh @@ -55,4 +55,8 @@ echo "::endgroup::" echo "::group::MongoBI" yarn lerna run --concurrency 1 --stream --no-prefix smoke:mongobi -echo "::endgroup::" \ No newline at end of file +echo "::endgroup::" + +echo "::group::Vertica" +yarn lerna run --concurrency 1 --stream --no-prefix smoke:vertica +echo "::endgroup::" From 1d1aa6bde2f7a8494659b941646bdcfa725d9c8f Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 17 Oct 2023 13:47:38 +1000 Subject: [PATCH 07/33] update packages --- packages/cubejs-vertica-driver/package.json | 8 +- yarn.lock | 210 +++++++++++++++++++- 2 files changed, 212 insertions(+), 6 deletions(-) diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 1732711fd1ca0..6ea1086f2d7f6 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -19,15 +19,15 @@ "lint:fix": "eslint --fix **/*.js" }, "dependencies": { - "@cubejs-backend/query-orchestrator": "^0.31.3", - "vertica-nodejs": "^1.0.1" + "@cubejs-backend/query-orchestrator": "^0.31.69", + "vertica-nodejs": "^1.0.3" }, "license": "Apache-2.0", "devDependencies": { "@cubejs-backend/linter": "^0.31.0", - "@cubejs-backend/testing-shared": "^0.31.3", + "@cubejs-backend/testing-shared": "^0.31.69", "jest": "^26.6.3", - "testcontainers": "^8.4.0" + "testcontainers": "^8.16.0" }, "publishConfig": { "access": "public" diff --git a/yarn.lock b/yarn.lock index 8f972ff720297..2b718017db838 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3881,6 +3881,42 @@ resolved "https://registry.yarnpkg.com/@ctrl/tinycolor/-/tinycolor-3.4.0.tgz#c3c5ae543c897caa9c2a68630bed355be5f9990f" integrity sha512-JZButFdZ1+/xAfpguQHoabIXkcqRRKpMrWKBkpEZZyxfY9C1DpADFB8PEqGSTeFr135SaTRfKqGKx5xSCLI7ZQ== +"@cubejs-backend/base-driver@^0.31.67": + version "0.31.67" + resolved "https://registry.yarnpkg.com/@cubejs-backend/base-driver/-/base-driver-0.31.67.tgz#8496b0d0b6dfb3837a80de527a3cc08aa2dd1006" + integrity sha512-5jnbqAQx9N+cGj3iREMQKBtdxBMdDmeY5afl5QmU9ybSNy51GW1FT+q+4XDNYpMB+63ZeMbRcYGkDOLacIWPEQ== + dependencies: + "@cubejs-backend/shared" "^0.31.67" + ramda "^0.27.0" + +"@cubejs-backend/cubestore-driver@^0.31.69": + version "0.31.69" + resolved "https://registry.yarnpkg.com/@cubejs-backend/cubestore-driver/-/cubestore-driver-0.31.69.tgz#c20b09dbfc8a430ccbdbceabea59cf4141df8c38" + integrity sha512-JgReJhR1LYn8R2IgDDQHV7uELe2EpoTkvIlxNpOoxDQZkJnWMGT5N6LkhVu9amdRfrlv50Nc23qLUhp4sujb7w== + dependencies: + "@cubejs-backend/base-driver" "^0.31.67" + "@cubejs-backend/cubestore" "^0.31.69" + "@cubejs-backend/shared" "^0.31.67" + csv-write-stream "^2.0.0" + flatbuffers "^1.12.0" + fs-extra "^9.1.0" + generic-pool "^3.6.0" + moment-timezone "^0.5.31" + node-fetch "^2.6.1" + sqlstring "^2.3.3" + tempy "^1.0.1" + uuid "^8.3.2" + ws "^7.4.3" + +"@cubejs-backend/cubestore@^0.31.69": + version "0.31.69" + resolved "https://registry.yarnpkg.com/@cubejs-backend/cubestore/-/cubestore-0.31.69.tgz#43cfdea8640427cda46e4c04c61c57eec2366c90" + integrity sha512-uToLpMA66QGafFc4TvrwVt+iV7n4w8SaUYZB4mnuxsPRxcE+jPaiM0CZHXXN7pNQGPCekd4dMDsmVfgy3AvMkA== + dependencies: + "@cubejs-backend/shared" "^0.31.67" + "@octokit/core" "^3.2.5" + source-map-support "^0.5.19" + "@cubejs-backend/dotenv@^9.0.2": version "9.0.2" resolved "https://registry.yarnpkg.com/@cubejs-backend/dotenv/-/dotenv-9.0.2.tgz#c3679091b702f0fd38de120c5a63943fcdc0dcbf" @@ -3897,6 +3933,64 @@ uuid "9.0.0" winston "3.8.2" +"@cubejs-backend/linter@^0.31.0": + version "0.31.0" + resolved "https://registry.yarnpkg.com/@cubejs-backend/linter/-/linter-0.31.0.tgz#dd641e12638777068c2d45eac9f6229e95c24db5" + integrity sha512-5GZe7NlfZ8N52CHpjRjsaWtpLvm8yldcbFBey12f1m/1eHfdyEO5FSbF3nbutBGaR3DszVdJhS2cmvB2QJjx7w== + dependencies: + "@typescript-eslint/eslint-plugin" "^4.16.1" + "@typescript-eslint/parser" "^4.16.1" + eslint "^7.21.0" + eslint-config-airbnb-base "^14.2.1" + eslint-plugin-import "^2.22.1" + eslint-plugin-node "^9.2.0" + +"@cubejs-backend/query-orchestrator@^0.31.69": + version "0.31.69" + resolved "https://registry.yarnpkg.com/@cubejs-backend/query-orchestrator/-/query-orchestrator-0.31.69.tgz#7832ed8b44266d7ee69ead917ddd92bc87f3e22b" + integrity sha512-a5mjCSHSWLun4trowrd0mQHukYbZXwubXcvBjCL9gKR/sWD6JPjFsymwgqIIUwBc9bQE2RyHCPbkuX5gEWUtsQ== + dependencies: + "@cubejs-backend/base-driver" "^0.31.67" + "@cubejs-backend/cubestore-driver" "^0.31.69" + "@cubejs-backend/shared" "^0.31.67" + csv-write-stream "^2.0.0" + es5-ext "0.10.53" + generic-pool "^3.7.1" + ioredis "^4.27.8" + lru-cache "^6.0.0" + moment-range "^4.0.2" + moment-timezone "^0.5.33" + ramda "^0.27.2" + redis "^3.0.2" + +"@cubejs-backend/schema-compiler@^0.31.69": + version "0.31.69" + resolved "https://registry.yarnpkg.com/@cubejs-backend/schema-compiler/-/schema-compiler-0.31.69.tgz#ed8444bdf9e42b8913337b20e47cea5eae5ab2e7" + integrity sha512-kz9pLmTomLnjoJbfygoXbsfY4/Xb5lb5FGaY1JATWW7TJyM0/Ok7HCTQRrSrbJBgtBCUhogS7CBxUmOGIwiDgw== + dependencies: + "@babel/code-frame" "^7.12.11" + "@babel/core" "^7.12.10" + "@babel/generator" "^7.12.10" + "@babel/parser" "^7.12.10" + "@babel/preset-env" "^7.12.10" + "@babel/standalone" "^7.12.10" + "@babel/traverse" "^7.12.10" + "@babel/types" "^7.12.12" + "@cubejs-backend/shared" "^0.31.67" + "@hapi/joi" "^17.1.1" + antlr4ts "0.5.0-alpha.4" + camelcase "^6.2.0" + cron-parser "^3.5.0" + humps "^2.0.1" + inflection "^1.12.0" + js-yaml "^4.1.0" + lru-cache "^5.1.1" + moment-range "^4.0.1" + moment-timezone "^0.5.33" + node-dijkstra "^2.5.0" + ramda "^0.27.2" + syntax-error "^1.3.0" + "@cubejs-backend/shared@0.33.20": version "0.33.20" resolved "https://registry.yarnpkg.com/@cubejs-backend/shared/-/shared-0.33.20.tgz#3d9fa60041599cca9fe4c04df05daa4b8ab8675f" @@ -3917,6 +4011,39 @@ throttle-debounce "^3.0.1" uuid "^8.3.2" +"@cubejs-backend/shared@^0.31.67": + version "0.31.67" + resolved "https://registry.yarnpkg.com/@cubejs-backend/shared/-/shared-0.31.67.tgz#48e7ff083abce895661c4e77f259a86eeafeebe2" + integrity sha512-3y2J2OR6jDGedhxIOddJfnRAcU7m/dw+a8vE+yuE94lRjWorYdTy/b2oNVEGdzrEwvf28K9cJQ36sgJpVsDj6Q== + dependencies: + "@oclif/color" "^0.1.2" + bytes "^3.1.0" + cli-progress "^3.9.0" + cross-spawn "^7.0.3" + decompress "^4.2.1" + env-var "^6.3.0" + fs-extra "^9.1.0" + http-proxy-agent "^4.0.1" + moment-range "^4.0.1" + moment-timezone "^0.5.33" + node-fetch "^2.6.1" + shelljs "^0.8.5" + throttle-debounce "^3.0.1" + uuid "^8.3.2" + +"@cubejs-backend/testing-shared@^0.31.69": + version "0.31.69" + resolved "https://registry.yarnpkg.com/@cubejs-backend/testing-shared/-/testing-shared-0.31.69.tgz#711ce414cff4130b6f0e95f6a2e640b9d15a5999" + integrity sha512-K+zS34cyMcdTZcKa3GvtSROBMNvmt+r9GIL5UXTKTyU5JjdIvfZEGEJJy67muPpZVcCQ8CKzoQhM3q3nEnue5g== + dependencies: + "@cubejs-backend/dotenv" "^9.0.2" + "@cubejs-backend/query-orchestrator" "^0.31.69" + "@cubejs-backend/schema-compiler" "^0.31.69" + "@cubejs-backend/shared" "^0.31.67" + dedent "^0.7.0" + node-fetch "^2.6.7" + testcontainers "^8.12" + "@cubejs-infra/post-installer@^0.0.7": version "0.0.7" resolved "https://registry.yarnpkg.com/@cubejs-infra/post-installer/-/post-installer-0.0.7.tgz#a28d2d03e5b7b69a64020d75194a7078cf911d2d" @@ -4236,11 +4363,23 @@ resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5" integrity sha512-QD1PhQk+s31P1ixsX0H0Suoupp3VMXzIVMSwobR3F3MSUO2YCV0B7xqLcUw/Bh8yuvd3LhpyqLQWTNcRmp6IdQ== +"@hapi/address@^4.0.1": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@hapi/address/-/address-4.1.0.tgz#d60c5c0d930e77456fdcde2598e77302e2955e1d" + integrity sha512-SkszZf13HVgGmChdHo/PxchnSaCJ6cetVqLzyciudzZRT0jcOouIF/Q93mgjw8cce+D+4F4C1Z/WrfFN+O3VHQ== + dependencies: + "@hapi/hoek" "^9.0.0" + "@hapi/bourne@1.x.x": version "1.3.2" resolved "https://registry.yarnpkg.com/@hapi/bourne/-/bourne-1.3.2.tgz#0a7095adea067243ce3283e1b56b8a8f453b242a" integrity sha512-1dVNHT76Uu5N3eJNTYcvxee+jzX4Z9lfciqRRHCU27ihbUcYi+iSc2iml5Ke1LXe1SyJCLA0+14Jh4tXJgOppA== +"@hapi/formula@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@hapi/formula/-/formula-2.0.0.tgz#edade0619ed58c8e4f164f233cda70211e787128" + integrity sha512-V87P8fv7PI0LH7LiVi8Lkf3x+KCO7pQozXRssAHNXXL9L1K+uyu4XypLXwxqVDKgyQai6qj3/KteNlrqDx4W5A== + "@hapi/hoek@8.x.x", "@hapi/hoek@^8.3.0": version "8.5.1" resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-8.5.1.tgz#fde96064ca446dec8c55a8c2f130957b070c6e06" @@ -4261,6 +4400,22 @@ "@hapi/hoek" "8.x.x" "@hapi/topo" "3.x.x" +"@hapi/joi@^17.1.1": + version "17.1.1" + resolved "https://registry.yarnpkg.com/@hapi/joi/-/joi-17.1.1.tgz#9cc8d7e2c2213d1e46708c6260184b447c661350" + integrity sha512-p4DKeZAoeZW4g3u7ZeRo+vCDuSDgSvtsB/NpfjXEHTUjSeINAi/RrVOWiVQ1isaoLzMvFEhe8n5065mQq1AdQg== + dependencies: + "@hapi/address" "^4.0.1" + "@hapi/formula" "^2.0.0" + "@hapi/hoek" "^9.0.0" + "@hapi/pinpoint" "^2.0.0" + "@hapi/topo" "^5.0.0" + +"@hapi/pinpoint@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@hapi/pinpoint/-/pinpoint-2.0.1.tgz#32077e715655fc00ab8df74b6b416114287d6513" + integrity sha512-EKQmr16tM8s16vTT3cA5L0kZZcTMU5DUOZTuvpnY738m+jyP3JIUj+Mm1xc1rsLkGBQ/gVnfKYPwOmPg1tUR4Q== + "@hapi/topo@3.x.x": version "3.1.6" resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-3.1.6.tgz#68d935fa3eae7fdd5ab0d7f953f3205d8b2bfc29" @@ -7439,7 +7594,7 @@ resolved "https://registry.yarnpkg.com/@types/yarnpkg__lockfile/-/yarnpkg__lockfile-1.1.5.tgz#9639020e1fb65120a2f4387db8f1e8b63efdf229" integrity sha512-8NYnGOctzsI4W0ApsP/BIHD/LnxpJ6XaGf2AZmz4EyDYJMxtprN4279dLNI1CPZcwC9H18qYcaFv4bXi0wmokg== -"@typescript-eslint/eslint-plugin@^4.17.0", "@typescript-eslint/eslint-plugin@^4.5.0": +"@typescript-eslint/eslint-plugin@^4.16.1", "@typescript-eslint/eslint-plugin@^4.17.0", "@typescript-eslint/eslint-plugin@^4.5.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276" integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== @@ -7492,7 +7647,7 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^4.5.0": +"@typescript-eslint/parser@^4.16.1", "@typescript-eslint/parser@^4.5.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899" integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== @@ -14772,6 +14927,11 @@ flatbuffers@23.3.3: resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-23.3.3.tgz#23654ba7a98d4b866a977ae668fe4f8969f34a66" integrity sha512-jmreOaAT1t55keaf+Z259Tvh8tR/Srry9K8dgCgvizhKSEr6gLGgaOJI2WFL5fkOpGOGRZwxUrlFn0GCmXUy6g== +flatbuffers@^1.12.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-1.12.0.tgz#72e87d1726cb1b216e839ef02658aa87dcef68aa" + integrity sha512-c7CZADjRcl6j0PlvFy0ZqXQ67qSEZfrVPynmnL+2zPc+NtMvrF8Y0QceMo7QqnSPc7+uWjUIAbvCQ5WIKlMVdQ== + flatted@^3.1.0: version "3.2.4" resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.4.tgz#28d9969ea90661b5134259f312ab6aa7929ac5e2" @@ -27297,6 +27457,24 @@ testcontainers@^8.12, testcontainers@^8.4.0: ssh-remote-port-forward "^1.0.4" tar-fs "^2.1.1" +testcontainers@^8.16.0: + version "8.16.0" + resolved "https://registry.yarnpkg.com/testcontainers/-/testcontainers-8.16.0.tgz#bf8a814179934d0e271aeaf8aec7a7dc3648baff" + integrity sha512-4wVmnzj4mAVXSQ8kU4uyNiXPs5W8UHdwCRbUuyeOSSODcgmDGQ8Te/YOYuF12HnxyzABEm1nR2I0ZCsQw/GZ/Q== + dependencies: + "@balena/dockerignore" "^1.0.2" + "@types/archiver" "^5.3.1" + "@types/dockerode" "^3.3.8" + archiver "^5.3.1" + byline "^5.0.0" + debug "^4.3.4" + docker-compose "^0.23.17" + dockerode "^3.3.1" + get-port "^5.1.1" + properties-reader "^2.2.0" + ssh-remote-port-forward "^1.0.4" + tar-fs "^2.1.1" + testcontainers@^9.3.0: version "9.3.0" resolved "https://registry.yarnpkg.com/testcontainers/-/testcontainers-9.3.0.tgz#9986bfd1453284d3cc1093c1b77d85409fc228e4" @@ -28324,6 +28502,21 @@ uuid@^9.0.0: resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30" integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA== +v-connection-string@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/v-connection-string/-/v-connection-string-1.0.3.tgz#2249e47bb26f8755a80fe793d05939a262ebad59" + integrity sha512-wssGHVDayvP1/6PxsfLEeAyXITiJyt6j8wOKZb89DwvHGzugim3DQa+tloBQ0mJ8C20Inye7ybRHAbbDqThG+g== + +v-pool@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/v-pool/-/v-pool-1.0.3.tgz#d8c7217d39f125fbf37c294f0a84eea4cdc7022e" + integrity sha512-ZrgBEcyVVONZxB4dych4hA6FDZwF8Mpe3R5NMBYkJlyUkt/7rhgePk2l3UzcDoawHZCZaKTvi1fpvZ6FquAu+w== + +v-protocol@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/v-protocol/-/v-protocol-1.0.3.tgz#40c1630a272771b19b1fd8f28d1947e168e24dfe" + integrity sha512-z/VTyuJGvYIXBZPpeeErIN0phY+P28VK2SS4W8bbaFNZaT1n2YQPOOO1b7IOi11H+oXmclXJYU1t+etXL1JtKQ== + v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" @@ -28377,6 +28570,19 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" +vertica-nodejs@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/vertica-nodejs/-/vertica-nodejs-1.0.3.tgz#4f46a526758b99a5244cabc968ae09ed549afe5f" + integrity sha512-++Uo4KqkFWw5I71giulzaeABLAS7i/vOotU3hfW+PTN/lkV1S9mUU7K7q34yNAaRF3EaJ5pyn7CGVs0afGfaIw== + dependencies: + buffer-writer "2.0.0" + packet-reader "1.0.0" + pg-types "^2.1.0" + pgpass "1.x" + v-connection-string "1.0.3" + v-pool "1.0.3" + v-protocol "1.0.3" + vite@^3.1.0: version "3.2.7" resolved "https://registry.yarnpkg.com/vite/-/vite-3.2.7.tgz#35a62826bd4d6b778ae5db8766d023bcd4e7bef3" From 004e1192b692a519e25e39c50dd5178ae2d5d558 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Fri, 20 Oct 2023 12:02:16 +1000 Subject: [PATCH 08/33] vertica driver published --- packages/cubejs-docker/package.json | 2 +- packages/cubejs-server-core/src/core/DriverDependencies.js | 2 +- packages/cubejs-vertica-driver/package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cubejs-docker/package.json b/packages/cubejs-docker/package.json index 88075d875060f..9fb891739188b 100644 --- a/packages/cubejs-docker/package.json +++ b/packages/cubejs-docker/package.json @@ -35,7 +35,7 @@ "@cubejs-backend/snowflake-driver": "^0.34.1", "@cubejs-backend/sqlite-driver": "^0.34.1", "@cubejs-backend/trino-driver": "^0.34.1", - "@cubejs-backend/vertica-driver": "^0.31.3", + "@knowitall/vertica-driver": "^0.32.0", "cubejs-cli": "^0.34.1", "typescript": "~4.9.5" }, diff --git a/packages/cubejs-server-core/src/core/DriverDependencies.js b/packages/cubejs-server-core/src/core/DriverDependencies.js index 501e0e9ab0cbd..c570fc4ab746e 100644 --- a/packages/cubejs-server-core/src/core/DriverDependencies.js +++ b/packages/cubejs-server-core/src/core/DriverDependencies.js @@ -26,7 +26,7 @@ module.exports = { ksql: '@cubejs-backend/ksql-driver', questdb: '@cubejs-backend/questdb-driver', materialize: '@cubejs-backend/materialize-driver', - vertica: '@cubejs-backend/vertica-driver', + vertica: '@knowitall/vertica-driver', // List for JDBC drivers 'databricks-jdbc': '@cubejs-backend/databricks-jdbc-driver', }; diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 6ea1086f2d7f6..4afb6a14d5f6c 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -1,8 +1,8 @@ { - "name": "@cubejs-backend/vertica-driver", + "name": "@knowitall/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", - "version": "0.31.3", + "version": "0.32.0", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", From 7770def0634919b3c96af56deda88a8e9bbc2dbc Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Fri, 20 Oct 2023 12:13:51 +1000 Subject: [PATCH 09/33] vertica driver --- packages/cubejs-docker/package.json | 2 +- packages/cubejs-server-core/src/core/DriverDependencies.js | 2 +- packages/cubejs-vertica-driver/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cubejs-docker/package.json b/packages/cubejs-docker/package.json index 9fb891739188b..c0aaa165fe558 100644 --- a/packages/cubejs-docker/package.json +++ b/packages/cubejs-docker/package.json @@ -35,7 +35,7 @@ "@cubejs-backend/snowflake-driver": "^0.34.1", "@cubejs-backend/sqlite-driver": "^0.34.1", "@cubejs-backend/trino-driver": "^0.34.1", - "@knowitall/vertica-driver": "^0.32.0", + "@cubejs-backend/vertica-driver": "^0.32.0", "cubejs-cli": "^0.34.1", "typescript": "~4.9.5" }, diff --git a/packages/cubejs-server-core/src/core/DriverDependencies.js b/packages/cubejs-server-core/src/core/DriverDependencies.js index c570fc4ab746e..501e0e9ab0cbd 100644 --- a/packages/cubejs-server-core/src/core/DriverDependencies.js +++ b/packages/cubejs-server-core/src/core/DriverDependencies.js @@ -26,7 +26,7 @@ module.exports = { ksql: '@cubejs-backend/ksql-driver', questdb: '@cubejs-backend/questdb-driver', materialize: '@cubejs-backend/materialize-driver', - vertica: '@knowitall/vertica-driver', + vertica: '@cubejs-backend/vertica-driver', // List for JDBC drivers 'databricks-jdbc': '@cubejs-backend/databricks-jdbc-driver', }; diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 4afb6a14d5f6c..13874d6544d63 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -1,5 +1,5 @@ { - "name": "@knowitall/vertica-driver", + "name": "@cubejs-backend/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", "version": "0.32.0", From 3daaf38d97b4a7bf5303aa3aed4af0c5732b1810 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Thu, 26 Oct 2023 14:50:29 +1000 Subject: [PATCH 10/33] update README.md --- packages/cubejs-vertica-driver/README.md | 10 +++------- packages/cubejs-vertica-driver/package.json | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/cubejs-vertica-driver/README.md b/packages/cubejs-vertica-driver/README.md index 4e52c933aca42..90cba8dfef107 100644 --- a/packages/cubejs-vertica-driver/README.md +++ b/packages/cubejs-vertica-driver/README.md @@ -1,6 +1,6 @@

Cube.js

-[Website](https://cube.dev) • [Docs](https://cube.dev/docs) • [Blog](https://cube.dev/blog) • [Slack](https://slack.cube.dev) • [Discourse](https://forum.cube.dev/) • [Twitter](https://twitter.com/thecubejs) +[Website](https://cube.dev) • [Docs](https://cube.dev/docs) • [Blog](https://cube.dev/blog) • [Slack](https://slack.cube.dev) • [Twitter](https://twitter.com/the_cube_dev) [![npm version](https://badge.fury.io/js/%40cubejs-backend%2Fserver.svg)](https://badge.fury.io/js/%40cubejs-backend%2Fserver) [![GitHub Actions](https://github.com/cube-js/cube.js/workflows/Build/badge.svg)](https://github.com/cube-js/cube.js/actions?query=workflow%3ABuild+branch%3Amaster) @@ -9,12 +9,8 @@ Cube.js Vertica driver that uses [vertica-nodejs](https://github.com/vertica/vertica-nodejs) package. -## Support +[Learn more](https://github.com/cube-js/cube.js#getting-started) -This package is **community supported** and should be used at your own risk. - -While the Cube Dev team is happy to review and accept future community contributions, we don't have active plans for further development. This includes bug fixes unless they affect different parts of Cube.js. **We're looking for maintainers for this package.** If you'd like to become a maintainer, please contact us in Cube.js Slack. - -## License +### License Cube.js Vertica Database Driver is [Apache 2.0 licensed](./LICENSE). diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 13874d6544d63..a7865630e7aed 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", - "version": "0.32.0", + "version": "0.32.1", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", From abd02a7ab1a4a3de1c8a48c88d7d9cfc4e239a48 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Thu, 26 Oct 2023 15:40:44 +1000 Subject: [PATCH 11/33] docker installation instruction --- packages/cubejs-vertica-driver/README.md | 27 +++++++++++++++++++ .../cubejs-vertica-driver/docker-compose.yml | 19 +++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 packages/cubejs-vertica-driver/docker-compose.yml diff --git a/packages/cubejs-vertica-driver/README.md b/packages/cubejs-vertica-driver/README.md index 90cba8dfef107..8ec09bf06d5be 100644 --- a/packages/cubejs-vertica-driver/README.md +++ b/packages/cubejs-vertica-driver/README.md @@ -11,6 +11,33 @@ Cube.js Vertica driver that uses [vertica-nodejs](https://github.com/vertica/ver [Learn more](https://github.com/cube-js/cube.js#getting-started) +### Installation + +Build [development docker image](https://github.com/cube-js/cube/blob/master/packages/cubejs-docker/DEVELOPMENT.md) or use official docker image. Change image directive as required + +``` +version: "2.2" + +services: + cube: + image: cubejs/cube:latest + ports: + - 4000:4000 + - 15432:15432 + environment: + - CUBEJS_DB_TYPE=vertica + - CUBEJS_DB_HOST= #host + - CUBEJS_DB_NAME= #database name + - CUBEJS_DB_PORT=5433 + - CUBEJS_DB_USER= #database user + - CUBEJS_DB_PASS= #database password + - CUBEJS_DEV_MODE=true #if running locally + volumes: + - .:/cube/conf +``` + +if in development mode then can be accessed via developer playground at [localhost:4000](localhost:4000) + ### License Cube.js Vertica Database Driver is [Apache 2.0 licensed](./LICENSE). diff --git a/packages/cubejs-vertica-driver/docker-compose.yml b/packages/cubejs-vertica-driver/docker-compose.yml new file mode 100644 index 0000000000000..e1e0495cc02b8 --- /dev/null +++ b/packages/cubejs-vertica-driver/docker-compose.yml @@ -0,0 +1,19 @@ +version: "2.2" + +services: + cube: + image: cubejs/cube:latest + ports: + - 4000:4000 + - 15432:15432 + environment: + - CUBEJS_DB_TYPE=vertica + - CUBEJS_DB_HOST= #host + - CUBEJS_DB_NAME= #database name + - CUBEJS_DB_PORT=5433 + - CUBEJS_DB_USER= #database user + - CUBEJS_DB_PASS= #database password + - CUBEJS_DEV_MODE=true #if running locally + volumes: + - .:/cube/conf + From 63fe819072069399c778426b21396baf55c83813 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Thu, 26 Oct 2023 15:42:35 +1000 Subject: [PATCH 12/33] up version --- packages/cubejs-vertica-driver/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index a7865630e7aed..9cd7a85c09151 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", - "version": "0.32.1", + "version": "0.32.2", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", From 9b1f83727fabcb360839ba5f2b2e1e5c80085c81 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 31 Oct 2023 08:43:51 +1000 Subject: [PATCH 13/33] update README and package refs --- packages/cubejs-docker/package.json | 2 +- .../src/core/DriverDependencies.js | 2 +- packages/cubejs-vertica-driver/README.md | 38 ++++++++++++------- packages/cubejs-vertica-driver/package.json | 4 +- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/packages/cubejs-docker/package.json b/packages/cubejs-docker/package.json index e0ad7e5a6bab1..005ed8d3f9cf7 100644 --- a/packages/cubejs-docker/package.json +++ b/packages/cubejs-docker/package.json @@ -36,7 +36,7 @@ "@cubejs-backend/sqlite-driver": "^0.34.12", "@cubejs-backend/trino-driver": "^0.34.12", "cubejs-cli": "^0.34.12", - "@cubejs-backend/vertica-driver": "^0.32.3", + "@knowitall/vertica-driver": "^0.32.3", "typescript": "~4.9.5" }, "resolutions": { diff --git a/packages/cubejs-server-core/src/core/DriverDependencies.js b/packages/cubejs-server-core/src/core/DriverDependencies.js index 501e0e9ab0cbd..c570fc4ab746e 100644 --- a/packages/cubejs-server-core/src/core/DriverDependencies.js +++ b/packages/cubejs-server-core/src/core/DriverDependencies.js @@ -26,7 +26,7 @@ module.exports = { ksql: '@cubejs-backend/ksql-driver', questdb: '@cubejs-backend/questdb-driver', materialize: '@cubejs-backend/materialize-driver', - vertica: '@cubejs-backend/vertica-driver', + vertica: '@knowitall/vertica-driver', // List for JDBC drivers 'databricks-jdbc': '@cubejs-backend/databricks-jdbc-driver', }; diff --git a/packages/cubejs-vertica-driver/README.md b/packages/cubejs-vertica-driver/README.md index 8ec09bf06d5be..ab80626f6d050 100644 --- a/packages/cubejs-vertica-driver/README.md +++ b/packages/cubejs-vertica-driver/README.md @@ -11,19 +11,34 @@ Cube.js Vertica driver that uses [vertica-nodejs](https://github.com/vertica/ver [Learn more](https://github.com/cube-js/cube.js#getting-started) +### Project Status + +Project is WIP pending approval of [PR 7298](https://github.com/cube-js/cube/pull/7289). + +A recent build of cubejs with the vertica driver preinstalled is available as a public docker image while the project is WIP + +`docker pull timbrownls26/cubejs-vertica:0.0.1` + ### Installation -Build [development docker image](https://github.com/cube-js/cube/blob/master/packages/cubejs-docker/DEVELOPMENT.md) or use official docker image. Change image directive as required +`npm i @knowitall/vertica-driver` + +### Usage +#### For Docker + +Build development [docker image](https://github.com/cube-js/cube/blob/master/packages/cubejs-docker/DEVELOPMENT.md) from variant of cubejs in this [PR 7298](https://github.com/cube-js/cube/pull/7289). + +Assuming the built image is tagged `cubejs/cube:dev` + +``` +FROM cubejs/cube:dev + +RUN npm i @knowitall/vertica-driver +``` + +Note: This driver isn't supported by front-end so we can not use connection wizard to config vertica data source. Please use env instead. ``` -version: "2.2" - -services: - cube: - image: cubejs/cube:latest - ports: - - 4000:4000 - - 15432:15432 environment: - CUBEJS_DB_TYPE=vertica - CUBEJS_DB_HOST= #host @@ -32,11 +47,8 @@ services: - CUBEJS_DB_USER= #database user - CUBEJS_DB_PASS= #database password - CUBEJS_DEV_MODE=true #if running locally - volumes: - - .:/cube/conf ``` - -if in development mode then can be accessed via developer playground at [localhost:4000](localhost:4000) +if `CUBEJS_DB_TYPE=vertica` then the vertica driver is loaded automatically. ### License diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 9cd7a85c09151..33748b1ffce54 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -1,8 +1,8 @@ { - "name": "@cubejs-backend/vertica-driver", + "name": "@knowitall/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", - "version": "0.32.2", + "version": "0.32.3", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", From b25bf2952ea07f1bd676ea3aa559f039f2530fe6 Mon Sep 17 00:00:00 2001 From: Roger Date: Fri, 1 Dec 2023 18:19:41 +1000 Subject: [PATCH 14/33] add cube build pipeline --- .github/workflows/qa-cubejs.yml | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/qa-cubejs.yml diff --git a/.github/workflows/qa-cubejs.yml b/.github/workflows/qa-cubejs.yml new file mode 100644 index 0000000000000..07a0ef9974f46 --- /dev/null +++ b/.github/workflows/qa-cubejs.yml @@ -0,0 +1,44 @@ +name: QA Cubejs + +on: + push: + branches: + - "DOP-45/Set-up-a-Cube.js-instance-that-can-talk-to-Vertica-pipeline" + +jobs: + # Job + build-cubejs: + name: Build Cubejs + runs-on: ubuntu-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1-node16 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_QA }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_QA }} + aws-region: ap-southeast-2 + + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + + + - name: Build, tag, and push image to ECR + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + ECR_REPOSITORY: kia-monocle-cubejs-qa + IMAGE_TAG: ${{ github.run_number }} + run: | + pwd + ls + git checkout vertica_driver + cd packages/cubejs-docker + cp ../../yarn.lock . + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:dev -f dev.Dockerfile ../../ + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest -f local.Dockerfile --build-arg="DEV_BUILD_IMAGE=$ECR_REGISTRY/$ECR_REPOSITORY:dev" . + docker images + docker push $ECR_REGISTRY/$ECR_REPOSITORY --all-tags + echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" From f371f44c2c6863bf2e575f7a80e0201317516854 Mon Sep 17 00:00:00 2001 From: Roger Date: Fri, 1 Dec 2023 18:24:04 +1000 Subject: [PATCH 15/33] remove --- .github/workflows/qa-cubejs.yml | 44 --------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .github/workflows/qa-cubejs.yml diff --git a/.github/workflows/qa-cubejs.yml b/.github/workflows/qa-cubejs.yml deleted file mode 100644 index 07a0ef9974f46..0000000000000 --- a/.github/workflows/qa-cubejs.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: QA Cubejs - -on: - push: - branches: - - "DOP-45/Set-up-a-Cube.js-instance-that-can-talk-to-Vertica-pipeline" - -jobs: - # Job - build-cubejs: - name: Build Cubejs - runs-on: ubuntu-latest - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1-node16 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_QA }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_QA }} - aws-region: ap-southeast-2 - - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - - - name: Build, tag, and push image to ECR - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: kia-monocle-cubejs-qa - IMAGE_TAG: ${{ github.run_number }} - run: | - pwd - ls - git checkout vertica_driver - cd packages/cubejs-docker - cp ../../yarn.lock . - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:dev -f dev.Dockerfile ../../ - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest -f local.Dockerfile --build-arg="DEV_BUILD_IMAGE=$ECR_REGISTRY/$ECR_REPOSITORY:dev" . - docker images - docker push $ECR_REGISTRY/$ECR_REPOSITORY --all-tags - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" From 92f23e65082ecf1dd16665d1e8abeeeb66a15c85 Mon Sep 17 00:00:00 2001 From: David O'Bryen Date: Wed, 20 Mar 2024 12:03:11 +1000 Subject: [PATCH 16/33] Added Query Implementation (#2) * Added custom dialect for CubeDriver --- CONTRIBUTING.md | 2 +- .../cubejs-testing/test/smoke-vertica.test.ts | 6 +- packages/cubejs-vertica-driver/package.json | 2 + .../src/VerticaDriver.js | 5 ++ .../cubejs-vertica-driver/src/VerticaQuery.js | 83 +++++++++++++++++++ 5 files changed, 94 insertions(+), 4 deletions(-) create mode 100644 packages/cubejs-vertica-driver/src/VerticaQuery.js diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2d78cc18da286..202801eb079d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,7 +53,7 @@ For more information, take a look at [Docker Development Guide](./packages/cubej #### Development 1. After cloning Cube repository run `yarn install` to install dependencies. -2. Use `docker build -t cubejs/cube:dev -f dev.Dockerfile ../../` to build stable development image. +2. From the `packages/cubejs-docker` directory, use `docker build -t cubejs/cube:dev -f dev.Dockerfile ../../` to build a stable development image. ### Cube Client diff --git a/packages/cubejs-testing/test/smoke-vertica.test.ts b/packages/cubejs-testing/test/smoke-vertica.test.ts index 32fd886d634d7..6c8ccb9a9c611 100644 --- a/packages/cubejs-testing/test/smoke-vertica.test.ts +++ b/packages/cubejs-testing/test/smoke-vertica.test.ts @@ -1,9 +1,9 @@ import fetch from 'node-fetch'; import { StartedTestContainer } from 'testcontainers'; // eslint-disable-next-line import/no-extraneous-dependencies -import { afterAll, beforeAll, expect, jest } from '@jest/globals'; -import cubejs, { CubejsApi, Query } from '@cubejs-client/core'; import { VerticaDBRunner } from '@cubejs-backend/testing-shared'; +import cubejs, { CubeApi, Query } from '@cubejs-client/core'; +import { afterAll, beforeAll, expect, jest } from '@jest/globals'; import { BirdBox, getBirdbox } from '../src'; import { DEFAULT_CONFIG } from './smoke-tests'; @@ -11,7 +11,7 @@ describe('vertica pa', () => { jest.setTimeout(60 * 5 * 1000); let db: StartedTestContainer; let birdbox: BirdBox; - let client: CubejsApi; + let client: CubeApi; beforeAll(async () => { db = await VerticaDBRunner.startContainer(); diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 33748b1ffce54..4dd41c3bc5310 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -20,6 +20,8 @@ }, "dependencies": { "@cubejs-backend/query-orchestrator": "^0.31.69", + "@cubejs-backend/schema-compiler": "^0.34.62", + "moment-timezone": "^0.5.45", "vertica-nodejs": "^1.0.3" }, "license": "Apache-2.0", diff --git a/packages/cubejs-vertica-driver/src/VerticaDriver.js b/packages/cubejs-vertica-driver/src/VerticaDriver.js index acc0d049259d0..f669f08d90096 100644 --- a/packages/cubejs-vertica-driver/src/VerticaDriver.js +++ b/packages/cubejs-vertica-driver/src/VerticaDriver.js @@ -1,5 +1,6 @@ const { Pool } = require('vertica-nodejs'); const { BaseDriver } = require('@cubejs-backend/query-orchestrator'); +const VerticaQuery = require('./VerticaQuery'); const defaultGenericType = 'text'; const VerticaTypeToGenericType = { @@ -29,6 +30,10 @@ class VerticaDriver extends BaseDriver { }); } + static dialectClass() { + return VerticaQuery; + } + async query(query, values) { const queryResult = await this.pool.query(query, values); return queryResult.rows; diff --git a/packages/cubejs-vertica-driver/src/VerticaQuery.js b/packages/cubejs-vertica-driver/src/VerticaQuery.js new file mode 100644 index 0000000000000..e27711eb70f1d --- /dev/null +++ b/packages/cubejs-vertica-driver/src/VerticaQuery.js @@ -0,0 +1,83 @@ +const moment = require('moment-timezone'); +const { BaseFilter, BaseQuery } = require('@cubejs-backend/schema-compiler'); + +const GRANULARITY_TO_INTERVAL = { + week: (date) => `DATE_TRUNC('week', ${date})`, + second: (date) => `DATE_TRUNC('second', ${date})`, + minute: (date) => `DATE_TRUNC('minute', ${date})`, + hour: (date) => `DATE_TRUNC('hour', ${date})`, + day: (date) => `DATE_TRUNC('day', ${date})`, + month: (date) => `DATE_TRUNC('month', ${date})`, + quarter: (date) => `DATE_TRUNC('quarter', ${date})`, + year: (date) => `DATE_TRUNC('year', ${date})` +}; + +class VerticaFilter extends BaseFilter { + likeIgnoreCase(column, not, param, type) { + const p = (!type || type === 'contains' || type === 'ends') ? '%' : ''; + const s = (!type || type === 'contains' || type === 'starts') ? '%' : ''; + return ` ILIKE (${column}${not ? ' NOT' : ''}, CONCAT('${p}', ${this.allocateParam(param)}, '${s}'))`; + } + + castParameter() { + if (this.definition().type === 'boolean') { + return 'CAST(? AS BOOLEAN)'; + } else if (this.measure || this.definition().type === 'number') { + return 'CAST(? AS DOUBLE)'; + } + + return '?'; + } +} + +class VerticaQuery extends BaseQuery { + newFilter(filter) { + return new VerticaFilter(this, filter); + } + + convertTz(field) { + return `${field} AT TIMEZONE '${this.timezone}'`; + } + + timeStampCast(value) { + return `TO_TIMESTAMP(${value}, 'YYYY-MM-DD"T"HH24:MI:SS.FFF')`; + } + + timestampFormat() { + return moment.HTML5_FMT.DATETIME_LOCAL_MS; + } + + dateTimeCast(value) { + return `${value}::TIMESTAMP`; + } + + timeGroupedColumn(granularity, dimension) { + return GRANULARITY_TO_INTERVAL[granularity](dimension); + } + + escapeColumnName(name) { + return `"${name}"`; + } + + seriesSql(timeDimension) { + const values = timeDimension.timeSeries().map( + ([from, to]) => `SELECT '${from}' f, '${to}' t` + ).join(' UNION ALL '); + + return `SELECT dates.f::TIMESTAMP date_from, dates.t::TIMESTAMP date_to FROM (${values}) AS dates`; + } + + concatStringsSql(strings) { + return `CONCAT(${strings.join(', ')})`; + } + + unixTimestampSql() { + return 'EXTRACT(EPOCH FROM now())'; + } + + wrapSegmentForDimensionSelect(sql) { + return `IF(${sql}, 1, 0)`; + } +} + +module.exports = VerticaQuery; From 033c401e66937eac0bd44fc5181841eb304a26d4 Mon Sep 17 00:00:00 2001 From: David O'Bryen Date: Thu, 21 Mar 2024 09:09:26 +1000 Subject: [PATCH 17/33] Sql fixes (#5) --- packages/cubejs-vertica-driver/src/VerticaQuery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cubejs-vertica-driver/src/VerticaQuery.js b/packages/cubejs-vertica-driver/src/VerticaQuery.js index e27711eb70f1d..245bdb19a08ae 100644 --- a/packages/cubejs-vertica-driver/src/VerticaQuery.js +++ b/packages/cubejs-vertica-driver/src/VerticaQuery.js @@ -23,7 +23,7 @@ class VerticaFilter extends BaseFilter { if (this.definition().type === 'boolean') { return 'CAST(? AS BOOLEAN)'; } else if (this.measure || this.definition().type === 'number') { - return 'CAST(? AS DOUBLE)'; + return 'CAST(? AS NUMERIC)'; } return '?'; @@ -68,7 +68,7 @@ class VerticaQuery extends BaseQuery { } concatStringsSql(strings) { - return `CONCAT(${strings.join(', ')})`; + return strings.join('||'); } unixTimestampSql() { @@ -76,7 +76,7 @@ class VerticaQuery extends BaseQuery { } wrapSegmentForDimensionSelect(sql) { - return `IF(${sql}, 1, 0)`; + return `CASE WHEN ${sql} THEN 1 ELSE 0 END::BOOLEAN`; } } From 04334c068ea2d50cd53105a2b8eb92d0eb6b6ff5 Mon Sep 17 00:00:00 2001 From: David O'Bryen Date: Thu, 21 Mar 2024 13:57:41 +1000 Subject: [PATCH 18/33] Additional sql fixes (#6) --- .../cubejs-vertica-driver/src/VerticaQuery.js | 6 - .../test/VerticaQuery.test.js | 116 ++++++++++++++++++ 2 files changed, 116 insertions(+), 6 deletions(-) create mode 100644 packages/cubejs-vertica-driver/test/VerticaQuery.test.js diff --git a/packages/cubejs-vertica-driver/src/VerticaQuery.js b/packages/cubejs-vertica-driver/src/VerticaQuery.js index 245bdb19a08ae..8fd60bc4581f8 100644 --- a/packages/cubejs-vertica-driver/src/VerticaQuery.js +++ b/packages/cubejs-vertica-driver/src/VerticaQuery.js @@ -13,12 +13,6 @@ const GRANULARITY_TO_INTERVAL = { }; class VerticaFilter extends BaseFilter { - likeIgnoreCase(column, not, param, type) { - const p = (!type || type === 'contains' || type === 'ends') ? '%' : ''; - const s = (!type || type === 'contains' || type === 'starts') ? '%' : ''; - return ` ILIKE (${column}${not ? ' NOT' : ''}, CONCAT('${p}', ${this.allocateParam(param)}, '${s}'))`; - } - castParameter() { if (this.definition().type === 'boolean') { return 'CAST(? AS BOOLEAN)'; diff --git a/packages/cubejs-vertica-driver/test/VerticaQuery.test.js b/packages/cubejs-vertica-driver/test/VerticaQuery.test.js new file mode 100644 index 0000000000000..0f4a232cf9882 --- /dev/null +++ b/packages/cubejs-vertica-driver/test/VerticaQuery.test.js @@ -0,0 +1,116 @@ +/* globals describe, it, afterAll, beforeAll, test, expect, jest */ +const { prepareCompiler } = require('@cubejs-backend/schema-compiler'); +const VerticaQuery = require('../src/VerticaQuery.js'); + +const testCompiler = (content, options) => prepareCompiler({ + localPath: () => __dirname, + dataSchemaFiles: () => Promise.resolve([ + { fileName: 'main.js', content }, + ]), +}, { adapter: 'vertica', ...options }); + +describe('VerticaQuery', () => { + const { compiler, joinGraph, cubeEvaluator } = testCompiler(` + cube(\`visitors\`, { + sql: \` + select * from visitors + \`, + + measures: { + count: { + type: 'count' + } + }, + + dimensions: { + name: { + type: 'string', + sql: 'name' + }, + dnc_address: { + type: 'boolean', + sql: 'dnc_address', + title: 'Unsubscribed (Address)' + }, + createdAt: { + sql: \`created_at\`, + type: 'time', + } + } + + }) + `, {}); + + it('vertica query like test', async () => { + await compiler.compile(); + + const query = new VerticaQuery( + { joinGraph, cubeEvaluator, compiler }, + { + measures: [], + filters: [ + { + member: 'visitors.name', + operator: 'contains', + values: [ + 'demo', + ], + }, + ], + }, + ); + + const queryAndParams = query.buildSqlAndParams(); + expect(queryAndParams[0]).toContain('("visitors".name ILIKE \'%\' || ? || \'%\')'); + }); + + it('vertica query boolean', async () => { + await compiler.compile(); + + const query = new VerticaQuery( + { joinGraph, cubeEvaluator, compiler }, + { + measures: [], + filters: [ + { + member: 'visitors.dnc_address', + operator: 'equals', + values: ['0', null], + }, + ], + }, + ); + + const queryAndParams = query.buildSqlAndParams(); + expect(queryAndParams[0]).toContain('("visitors".dnc_address IN (CAST(? AS BOOLEAN)) OR "visitors".dnc_address IS NULL'); + }); + + it('test equal filters', async () => { + await compiler.compile(); + + const filterValuesVariants = [ + [[true], 'WHERE ("visitors".name = ?)'], + [[false], 'WHERE ("visitors".name = ?)'], + [[''], 'WHERE ("visitors".name = ?)'], + [[null], 'WHERE ("visitors".name IS NULL)'], + ]; + + for (const [values, expected] of filterValuesVariants) { + const query = new VerticaQuery({ joinGraph, cubeEvaluator, compiler }, { + measures: [ + 'visitors.count' + ], + timeDimensions: [], + filters: [{ + member: 'visitors.name', + operator: 'equals', + values + }], + timezone: 'America/Los_Angeles' + }); + + const queryAndParams = query.buildSqlAndParams(); + expect(queryAndParams[0]).toContain(expected); + } + }); +}); From 416feed584fccd1fd32f3e98ea182f38a653093f Mon Sep 17 00:00:00 2001 From: David O'Bryen Date: Wed, 27 Mar 2024 00:57:51 +1000 Subject: [PATCH 19/33] draft --- packages/cubejs-testing-shared/src/db/vertica.ts | 8 ++------ packages/cubejs-vertica-driver/src/VerticaDriver.js | 8 +++++++- packages/cubejs-vertica-driver/test/VerticaDriver.test.js | 6 ++++++ packages/cubejs-vertica-driver/test/VerticaQuery.test.js | 2 +- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/packages/cubejs-testing-shared/src/db/vertica.ts b/packages/cubejs-testing-shared/src/db/vertica.ts index 0f277219adc04..4b2dc91b27f01 100644 --- a/packages/cubejs-testing-shared/src/db/vertica.ts +++ b/packages/cubejs-testing-shared/src/db/vertica.ts @@ -1,17 +1,13 @@ import { GenericContainer } from 'testcontainers'; import { LogWaitStrategy } from 'testcontainers/dist/wait-strategy'; - -import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract'; - -type Vertica = DBRunnerContainerOptions & { - version?: string, -}; +import { DbRunnerAbstract } from './db-runner.abstract'; export class VerticaDBRunner extends DbRunnerAbstract { public static startContainer() { const version = process.env.TEST_VERTICA_VERSION || '11.1.1-0'; const container = new GenericContainer(`vertica/vertica-ce:${version}`) + .withEnv('TZ', 'Antarctica/Troll') .withEnv('VERTICA_DB_NAME', 'test') .withExposedPorts(5433) .withStartupTimeout(60 * 1000) diff --git a/packages/cubejs-vertica-driver/src/VerticaDriver.js b/packages/cubejs-vertica-driver/src/VerticaDriver.js index f669f08d90096..e6277f404f1c7 100644 --- a/packages/cubejs-vertica-driver/src/VerticaDriver.js +++ b/packages/cubejs-vertica-driver/src/VerticaDriver.js @@ -13,6 +13,10 @@ const VerticaTypeToGenericType = { numeric: 'decimal', }; +const connectListener = async (client) => { + await client.query('SET TIMEZONE TO \'UTC\''); +}; + class VerticaDriver extends BaseDriver { constructor(config) { super(); @@ -28,6 +32,8 @@ class VerticaDriver extends BaseDriver { ssl: this.getSslOptions(), ...config, }); + + this.pool.addListener('connect', connectListener); } static dialectClass() { @@ -44,7 +50,7 @@ class VerticaDriver extends BaseDriver { } async testConnection() { - return this.query('select 1 as n'); + return this.query('SELECT 1 AS n'); } async release() { diff --git a/packages/cubejs-vertica-driver/test/VerticaDriver.test.js b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js index cd34e2c2f26da..fde3950ea6bd8 100644 --- a/packages/cubejs-vertica-driver/test/VerticaDriver.test.js +++ b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js @@ -35,6 +35,12 @@ describe('VerticaDriver', () => { ]); }); + test('test default tz', async () => { + const result = await driver.query('SHOW TIMEZONE'); + expect(result[0].name).toBe('timezone'); + expect(result[0].setting).toBe('UTC'); + }); + test('simple query', async () => { const data = await driver.query( ` diff --git a/packages/cubejs-vertica-driver/test/VerticaQuery.test.js b/packages/cubejs-vertica-driver/test/VerticaQuery.test.js index 0f4a232cf9882..7340f5f8eb0a8 100644 --- a/packages/cubejs-vertica-driver/test/VerticaQuery.test.js +++ b/packages/cubejs-vertica-driver/test/VerticaQuery.test.js @@ -1,4 +1,4 @@ -/* globals describe, it, afterAll, beforeAll, test, expect, jest */ +/* globals describe, it, expect */ const { prepareCompiler } = require('@cubejs-backend/schema-compiler'); const VerticaQuery = require('../src/VerticaQuery.js'); From 8363c3c886b5ce1f53420f422c4a7073d8e57e6f Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Mon, 16 Sep 2024 15:09:30 +1000 Subject: [PATCH 20/33] update test --- .../src/db-container-runners/vertica.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts index 0f277219adc04..4b2dc91b27f01 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts @@ -1,17 +1,13 @@ import { GenericContainer } from 'testcontainers'; import { LogWaitStrategy } from 'testcontainers/dist/wait-strategy'; - -import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract'; - -type Vertica = DBRunnerContainerOptions & { - version?: string, -}; +import { DbRunnerAbstract } from './db-runner.abstract'; export class VerticaDBRunner extends DbRunnerAbstract { public static startContainer() { const version = process.env.TEST_VERTICA_VERSION || '11.1.1-0'; const container = new GenericContainer(`vertica/vertica-ce:${version}`) + .withEnv('TZ', 'Antarctica/Troll') .withEnv('VERTICA_DB_NAME', 'test') .withExposedPorts(5433) .withStartupTimeout(60 * 1000) From dfbbd829ad591302c0536aaeb4770a47e4a8d40b Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 17 Sep 2024 09:33:51 +1000 Subject: [PATCH 21/33] fix build --- .../src/db-container-runners/vertica.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts index 4b2dc91b27f01..617d8c627ea76 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts @@ -1,17 +1,16 @@ import { GenericContainer } from 'testcontainers'; -import { LogWaitStrategy } from 'testcontainers/dist/wait-strategy'; import { DbRunnerAbstract } from './db-runner.abstract'; +import { LogWaitStrategy } from 'testcontainers/build/wait-strategies/log-wait-strategy'; export class VerticaDBRunner extends DbRunnerAbstract { public static startContainer() { const version = process.env.TEST_VERTICA_VERSION || '11.1.1-0'; const container = new GenericContainer(`vertica/vertica-ce:${version}`) - .withEnv('TZ', 'Antarctica/Troll') - .withEnv('VERTICA_DB_NAME', 'test') + .withEnvironment({'TZ': 'Antarctica/Troll', 'VERTICA_DB_NAME': 'test'}) .withExposedPorts(5433) .withStartupTimeout(60 * 1000) - .withWaitStrategy(new LogWaitStrategy("Node Status: v_test_node0001: (UP)")); + .withWaitStrategy(new LogWaitStrategy("Node Status: v_test_node0001: (UP)", 1)); return container.start(); } From f9312cf4440850d619b55421fd62797e8b53ee8f Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 17 Sep 2024 10:54:27 +1000 Subject: [PATCH 22/33] update vertica driver dependencies --- packages/cubejs-vertica-driver/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 4dd41c3bc5310..d43c0b945e1ae 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -19,17 +19,17 @@ "lint:fix": "eslint --fix **/*.js" }, "dependencies": { - "@cubejs-backend/query-orchestrator": "^0.31.69", - "@cubejs-backend/schema-compiler": "^0.34.62", + "@cubejs-backend/query-orchestrator": "^0.36.0", + "@cubejs-backend/schema-compiler": "^0.36.0", "moment-timezone": "^0.5.45", "vertica-nodejs": "^1.0.3" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "^0.31.0", - "@cubejs-backend/testing-shared": "^0.31.69", + "@cubejs-backend/linter": "^0.36.0", + "@cubejs-backend/testing-shared": "^0.36.0", "jest": "^26.6.3", - "testcontainers": "^8.16.0" + "testcontainers": "^10.13.0" }, "publishConfig": { "access": "public" From 17fa568ecf74d049cb2044ebdaedf582d6217220 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 19 Nov 2024 14:33:58 +1000 Subject: [PATCH 23/33] vertica documentation --- .../configuration/data-sources/vertica.mdx | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docs/pages/product/configuration/data-sources/vertica.mdx diff --git a/docs/pages/product/configuration/data-sources/vertica.mdx b/docs/pages/product/configuration/data-sources/vertica.mdx new file mode 100644 index 0000000000000..5c73436dbe193 --- /dev/null +++ b/docs/pages/product/configuration/data-sources/vertica.mdx @@ -0,0 +1,46 @@ +# Vertica + +## Prerequisites + +- The hostname for the [Vertica][vertica] database server +- The username/password for the [Vertica][vertica] database server +- The name of the database to use within the [Vertica][vertica] database server + +## Setup + +### Manual + +Add the following to a `.env` file in your Cube project: + +```dotenv +CUBEJS_DB_TYPE=vertica +CUBEJS_DB_HOST=my.vertica.host +CUBEJS_DB_USER=vertica_user +CUBEJS_DB_PASS=********** +CUBEJS_DB_SCHEMA=my_vertica_schema +``` + +## Environment Variables + +| Environment Variable | Description | Possible Values | Required | +| -------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------- | :------: | +| `CUBEJS_DB_HOST` | The host URL for a database | A valid database host URL | ✅ | +| `CUBEJS_DB_PORT` | The port for the database connection | A valid port number | ❌ | +| `CUBEJS_DB_USER` | The username used to connect to the database | A valid database username | ✅ | +| `CUBEJS_DB_PASS` | The password used to connect to the database | A valid database password | ✅ | +| `CUBEJS_DB_SCHEMA` | The schema within the database to connect to | A valid schema name within a Presto database | ✅ | +| `CUBEJS_DB_SSL` | If `true`, enables SSL encryption for database connections from Cube | `true`, `false` | ❌ | +| `CUBEJS_CONCURRENCY` | The number of concurrent connections each queue has to the database. Default is `2` | A valid number | ❌ | +| `CUBEJS_DB_MAX_POOL` | The maximum number of concurrent database connections to pool. Default is `8` | A valid number | ❌ | + + +## SSL + +To enable SSL-encrypted connections between Cube and Verica, set the +`CUBEJS_DB_SSL` environment variable to `true`. For more information on how to +configure custom certificates, please check out [Enable SSL Connections to the +Database][ref-recipe-enable-ssl]. + +[vertica]: https://www.vertica.com/documentation/vertica/all/ +[ref-recipe-enable-ssl]:/guides/recipes/data-sources/using-ssl-connections-to-data-source + From 8dd1c8adcf04ce08b90d86b25f193022b4057ac4 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 19 Nov 2024 14:54:49 +1000 Subject: [PATCH 24/33] add vertica to data sources --- docs/pages/product/configuration/data-sources.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/pages/product/configuration/data-sources.mdx b/docs/pages/product/configuration/data-sources.mdx index 24faaaf8d9027..7088e3888ef49 100644 --- a/docs/pages/product/configuration/data-sources.mdx +++ b/docs/pages/product/configuration/data-sources.mdx @@ -54,6 +54,11 @@ sources][ref-config-multi-data-src] out of the box. imageUrl="https://static.cube.dev/icons/firebolt.svg" title="Firebolt" /> + ## Query engines From 2790967a00651ef1ba894149c40f657701724862 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Tue, 19 Nov 2024 15:07:16 +1000 Subject: [PATCH 25/33] fix lint errors --- packages/cubejs-server-core/src/core/server.ts | 2 ++ .../src/db-container-runners/oracle.ts | 1 - .../src/db-container-runners/vertica.ts | 6 +++--- packages/cubejs-testing/src/birdbox.ts | 2 +- .../cubejs-testing/test/smoke-oracle.test.ts | 18 ++++++------------ 5 files changed, 12 insertions(+), 17 deletions(-) diff --git a/packages/cubejs-server-core/src/core/server.ts b/packages/cubejs-server-core/src/core/server.ts index 673096142a720..eed1a23c29e21 100644 --- a/packages/cubejs-server-core/src/core/server.ts +++ b/packages/cubejs-server-core/src/core/server.ts @@ -107,6 +107,7 @@ export class CubejsServerCore { protected readonly orchestratorStorage: OrchestratorStorage = new OrchestratorStorage(); + // eslint-disable-next-line @typescript-eslint/no-unused-vars protected repositoryFactory: ((context: RequestContext) => SchemaFileRepository) | (() => FileRepository); protected contextToDbType: DbTypeAsyncFn; @@ -141,6 +142,7 @@ export class CubejsServerCore { protected apiGatewayInstance: ApiGateway | null = null; + // eslint-disable-next-line @typescript-eslint/no-unused-vars public readonly event: (name: string, props?: object) => Promise; public projectFingerprint: string | null = null; diff --git a/packages/cubejs-testing-shared/src/db-container-runners/oracle.ts b/packages/cubejs-testing-shared/src/db-container-runners/oracle.ts index dda573436badf..c42457d0703ff 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/oracle.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/oracle.ts @@ -1,5 +1,4 @@ import { GenericContainer, Wait } from 'testcontainers'; -import { isCI } from '@cubejs-backend/shared'; import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract'; diff --git a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts index 617d8c627ea76..eedcf358b37b3 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts @@ -1,16 +1,16 @@ import { GenericContainer } from 'testcontainers'; -import { DbRunnerAbstract } from './db-runner.abstract'; import { LogWaitStrategy } from 'testcontainers/build/wait-strategies/log-wait-strategy'; +import { DbRunnerAbstract } from './db-runner.abstract'; export class VerticaDBRunner extends DbRunnerAbstract { public static startContainer() { const version = process.env.TEST_VERTICA_VERSION || '11.1.1-0'; const container = new GenericContainer(`vertica/vertica-ce:${version}`) - .withEnvironment({'TZ': 'Antarctica/Troll', 'VERTICA_DB_NAME': 'test'}) + .withEnvironment({ TZ: 'Antarctica/Troll', VERTICA_DB_NAME: 'test' }) .withExposedPorts(5433) .withStartupTimeout(60 * 1000) - .withWaitStrategy(new LogWaitStrategy("Node Status: v_test_node0001: (UP)", 1)); + .withWaitStrategy(new LogWaitStrategy('Node Status: v_test_node0001: (UP)', 1)); return container.start(); } diff --git a/packages/cubejs-testing/src/birdbox.ts b/packages/cubejs-testing/src/birdbox.ts index cabbd8c94aed9..2efe16b7b9c0c 100644 --- a/packages/cubejs-testing/src/birdbox.ts +++ b/packages/cubejs-testing/src/birdbox.ts @@ -263,7 +263,7 @@ export async function startBirdBoxFromContainer( if (pid !== null) { process.kill(pid, signal); } else { - process.stdout.write(`[Birdbox] Cannot kill Cube instance running in TEST_CUBE_HOST mode without TEST_CUBE_PID defined\n`); + process.stdout.write('[Birdbox] Cannot kill Cube instance running in TEST_CUBE_HOST mode without TEST_CUBE_PID defined\n'); throw new Error('Attempted to use killCube while running with TEST_CUBE_HOST'); } }, diff --git a/packages/cubejs-testing/test/smoke-oracle.test.ts b/packages/cubejs-testing/test/smoke-oracle.test.ts index a37ee835f80e3..21c57d428c630 100644 --- a/packages/cubejs-testing/test/smoke-oracle.test.ts +++ b/packages/cubejs-testing/test/smoke-oracle.test.ts @@ -1,18 +1,12 @@ -import { StartedTestContainer } from 'testcontainers'; -import { OracleDBRunner } from '@cubejs-backend/testing-shared'; -import cubejs, { CubeApi } from '@cubejs-client/core'; // eslint-disable-next-line import/no-extraneous-dependencies -import { afterAll, beforeAll, expect, jest } from '@jest/globals'; -import { pausePromise } from '@cubejs-backend/shared'; -import { BirdBox, getBirdbox } from '../src'; -import { DEFAULT_API_TOKEN, DEFAULT_CONFIG, testQueryMeasure } from './smoke-tests'; +import { expect } from '@jest/globals'; // todo: @ovr fix me please describe('oracle', () => { -// jest.setTimeout(60 * 5 * 100000); -// let db: StartedTestContainer; -// let birdbox: BirdBox; -// let client: CubejsApi; + // jest.setTimeout(60 * 5 * 100000); + // let db: StartedTestContainer; + // let birdbox: BirdBox; + // let client: CubejsApi; // beforeAll(async () => { // db = await OracleDBRunner.startContainer({}); @@ -48,7 +42,7 @@ describe('oracle', () => { // }); // test('query measure', () => testQueryMeasure(client)); - + test('query measure', () => { expect([{ 'Orders.totalAmount': 1700 }]).toMatchSnapshot('query'); }); From adcde019cce7b5f11e153bb4309befacbb056638 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Fri, 6 Dec 2024 10:26:29 +1000 Subject: [PATCH 26/33] update jest --- packages/cubejs-vertica-driver/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index d43c0b945e1ae..f80f217d695c9 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -2,7 +2,7 @@ "name": "@knowitall/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", - "version": "0.32.3", + "version": "0.32.4", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", @@ -28,7 +28,7 @@ "devDependencies": { "@cubejs-backend/linter": "^0.36.0", "@cubejs-backend/testing-shared": "^0.36.0", - "jest": "^26.6.3", + "jest": "^27.5.1", "testcontainers": "^10.13.0" }, "publishConfig": { From fa025e84f9ae1aa40c55d40b73c1cbbe40ac5941 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Fri, 6 Dec 2024 10:34:07 +1000 Subject: [PATCH 27/33] include vertica tests --- .github/workflows/drivers-tests.yml | 5 ++++- .github/workflows/push.yml | 2 +- packages/cubejs-docker/package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/drivers-tests.yml b/.github/workflows/drivers-tests.yml index 775d3cfee7269..97f323a526dc3 100644 --- a/.github/workflows/drivers-tests.yml +++ b/.github/workflows/drivers-tests.yml @@ -24,6 +24,7 @@ on: - 'packages/cubejs-mysql-driver/**' - 'packages/cubejs-postgres-driver/**' - 'packages/cubejs-snowflake-driver/**' + - 'packages/cubejs-vertica-driver/**' # To test SQL API Push down - 'packages/cubejs-backend-native/**' @@ -49,7 +50,8 @@ on: - 'packages/cubejs-mysql-driver/**' - 'packages/cubejs-postgres-driver/**' - 'packages/cubejs-snowflake-driver/**' - + - 'packages/cubejs-vertica-driver/**' + # To test SQL API Push down - 'packages/cubejs-backend-native/**' - 'rust/cubesql/**' @@ -203,6 +205,7 @@ jobs: snowflake-export-bucket-azure snowflake-export-bucket-azure-via-storage-integration snowflake-export-bucket-gcs + vertica # As per docs: # Secrets cannot be directly referenced in if: conditionals. Instead, consider setting # secrets as job-level environment variables, then referencing the environment variables diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 778f2b91cff35..d3be523b02ca8 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -319,7 +319,7 @@ jobs: node-version: [20.x] db: [ 'clickhouse', 'druid', 'elasticsearch', 'mssql', 'mysql', 'postgres', 'prestodb', - 'mysql-aurora-serverless', 'crate', 'mongobi' + 'mysql-aurora-serverless', 'crate', 'mongobi', 'vertica' ] fail-fast: false diff --git a/packages/cubejs-docker/package.json b/packages/cubejs-docker/package.json index bdced32a0f550..c9163d65dc82a 100644 --- a/packages/cubejs-docker/package.json +++ b/packages/cubejs-docker/package.json @@ -36,7 +36,7 @@ "@cubejs-backend/snowflake-driver": "1.1.7", "@cubejs-backend/sqlite-driver": "1.1.7", "@cubejs-backend/trino-driver": "1.1.7", - "@knowitall/vertica-driver": "^0.32.3", + "@knowitall/vertica-driver": "^0.32.4", "cubejs-cli": "1.1.7", "typescript": "~5.2.2" }, From a88cac3dae226e3402c934d3522e68ce61dbc6ec Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Wed, 11 Dec 2024 08:58:44 +1000 Subject: [PATCH 28/33] update wait strategy and test shared package --- .yarnrc.yml | 1 + packages/cubejs-testing-shared/package.json | 2 +- .../src/db-container-runners/vertica.ts | 7 +-- .../cubejs-testing/test/smoke-vertica.test.ts | 2 +- packages/cubejs-vertica-driver/package.json | 8 +-- .../test/VerticaDriver.test.js | 2 +- yarn.lock | 52 ++++++++++++++++++- 7 files changed, 63 insertions(+), 11 deletions(-) create mode 100644 .yarnrc.yml diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000000000..3186f3f0795ab --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/packages/cubejs-testing-shared/package.json b/packages/cubejs-testing-shared/package.json index 647a2e94af942..346184f84c8d8 100644 --- a/packages/cubejs-testing-shared/package.json +++ b/packages/cubejs-testing-shared/package.json @@ -1,5 +1,5 @@ { - "name": "@cubejs-backend/testing-shared", + "name": "@knowitall/testing-shared", "version": "1.1.8", "description": "Cube.js Testing Helpers", "author": "Cube Dev, Inc.", diff --git a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts index eedcf358b37b3..e9d4a31c95256 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts @@ -1,5 +1,4 @@ -import { GenericContainer } from 'testcontainers'; -import { LogWaitStrategy } from 'testcontainers/build/wait-strategies/log-wait-strategy'; +import { GenericContainer, Wait } from 'testcontainers'; import { DbRunnerAbstract } from './db-runner.abstract'; export class VerticaDBRunner extends DbRunnerAbstract { @@ -10,7 +9,9 @@ export class VerticaDBRunner extends DbRunnerAbstract { .withEnvironment({ TZ: 'Antarctica/Troll', VERTICA_DB_NAME: 'test' }) .withExposedPorts(5433) .withStartupTimeout(60 * 1000) - .withWaitStrategy(new LogWaitStrategy('Node Status: v_test_node0001: (UP)', 1)); + .withWaitStrategy( + Wait.forLogMessage('Node Status: v_test_node0001: (UP)') + ); return container.start(); } diff --git a/packages/cubejs-testing/test/smoke-vertica.test.ts b/packages/cubejs-testing/test/smoke-vertica.test.ts index 6c8ccb9a9c611..e4aea35b10400 100644 --- a/packages/cubejs-testing/test/smoke-vertica.test.ts +++ b/packages/cubejs-testing/test/smoke-vertica.test.ts @@ -1,7 +1,7 @@ import fetch from 'node-fetch'; import { StartedTestContainer } from 'testcontainers'; // eslint-disable-next-line import/no-extraneous-dependencies -import { VerticaDBRunner } from '@cubejs-backend/testing-shared'; +import { VerticaDBRunner } from '@knowitall/testing-shared'; import cubejs, { CubeApi, Query } from '@cubejs-client/core'; import { afterAll, beforeAll, expect, jest } from '@jest/globals'; import { BirdBox, getBirdbox } from '../src'; diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index f80f217d695c9..3ae71da6f9b0e 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -19,15 +19,15 @@ "lint:fix": "eslint --fix **/*.js" }, "dependencies": { - "@cubejs-backend/query-orchestrator": "^0.36.0", - "@cubejs-backend/schema-compiler": "^0.36.0", + "@cubejs-backend/query-orchestrator": "1.1.8", + "@cubejs-backend/schema-compiler": "1.1.8", "moment-timezone": "^0.5.45", "vertica-nodejs": "^1.0.3" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "^0.36.0", - "@cubejs-backend/testing-shared": "^0.36.0", + "@cubejs-backend/linter": "^1.0.0", + "@knowitall/testing-shared": "1.1.8", "jest": "^27.5.1", "testcontainers": "^10.13.0" }, diff --git a/packages/cubejs-vertica-driver/test/VerticaDriver.test.js b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js index fde3950ea6bd8..9a9540451e7b4 100644 --- a/packages/cubejs-vertica-driver/test/VerticaDriver.test.js +++ b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js @@ -1,5 +1,5 @@ /* globals describe, afterAll, beforeAll, test, expect, jest */ -const { VerticaDBRunner } = require('@cubejs-backend/testing-shared'); +const { VerticaDBRunner } = require('@knowitall/testing-shared'); const VerticaDriver = require('../src/VerticaDriver.js'); describe('VerticaDriver', () => { diff --git a/yarn.lock b/yarn.lock index a3b76c1851873..d1dead3ce5ddb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4401,6 +4401,20 @@ throttle-debounce "^3.0.1" uuid "^8.3.2" +"@cubejs-backend/testing-shared@1.1.8": + version "1.1.8" + resolved "https://registry.npmjs.org/@cubejs-backend/testing-shared/-/testing-shared-1.1.8.tgz#2a8b2c7c5ae16d311980f6198f85586f067f7555" + integrity sha512-Gq1n+Q85aoQyn5/STitWpLh3243tQWBId3C+52HTAVdbaHGKJMm05G7O5EXLFt7Nc5NGHBROP2WTOCkkoxTNoQ== + dependencies: + "@cubejs-backend/dotenv" "^9.0.2" + "@cubejs-backend/query-orchestrator" "1.1.8" + "@cubejs-backend/schema-compiler" "1.1.8" + "@cubejs-backend/shared" "1.1.8" + "@testcontainers/kafka" "~10.13.0" + dedent "^0.7.0" + node-fetch "^2.6.7" + testcontainers "^10.13.0" + "@cubejs-infra/post-installer@^0.0.7": version "0.0.7" resolved "https://registry.yarnpkg.com/@cubejs-infra/post-installer/-/post-installer-0.0.7.tgz#a28d2d03e5b7b69a64020d75194a7078cf911d2d" @@ -19513,7 +19527,7 @@ jest-worker@^28.0.2: merge-stream "^2.0.0" supports-color "^8.0.0" -jest@27, jest@^27, jest@^27.1.0: +jest@27, jest@^27, jest@^27.1.0, jest@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest/-/jest-27.5.1.tgz#dadf33ba70a779be7a6fc33015843b51494f63fc" integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== @@ -21361,6 +21375,13 @@ moment-timezone@^0.5.15, moment-timezone@^0.5.27, moment-timezone@^0.5.31, momen dependencies: moment "^2.29.4" +moment-timezone@^0.5.45: + version "0.5.46" + resolved "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.46.tgz#a21aa6392b3c6b3ed916cd5e95858a28d893704a" + integrity sha512-ZXm9b36esbe7OmdABqIWJuBBiLLwAjrN7CE+7sYdCCx82Nabt1wHDj8TVseS59QIlfFPbOoiBPm6ca9BioG4hw== + dependencies: + moment "^2.29.4" + moment@^2.17.1, moment@^2.24.0, moment@^2.25.3, moment@^2.29.1, moment@^2.29.4: version "2.29.4" resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108" @@ -28896,6 +28917,21 @@ uuid@^9.0.0, uuid@^9.0.1: resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30" integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA== +v-connection-string@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/v-connection-string/-/v-connection-string-1.1.1.tgz#db8d50473e276511320bfed742cdf8ed05d537b5" + integrity sha512-FqxtfwiMQekIqFMMXCDrrLbmGBEEHzm8HD0O2CZcCCQbBFsD+KaHkCRpkLE1j+bBWreYfeI1b0MjzGHNx9Bs1w== + +v-pool@1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/v-pool/-/v-pool-1.1.4.tgz#a65e5e15e06f6c4a642b389d264d67ae8ae6afd8" + integrity sha512-qJiYI40fibbKUWT3zonUHlG32qqvyZ5ya0YJduRogLBXQAEJhwvA5Kaw0gFg2uEMLjTBEY9QkP+w7uhU2I+zTA== + +v-protocol@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/v-protocol/-/v-protocol-1.1.1.tgz#03a817757326c16ae5f54dcab14b196d01d594f3" + integrity sha512-HkIPshuFEK0awxmLN2ECTzBqncxDSBjzJ2U89u3BhykNSJ8uumYj9g74l59i2K/2lRO5t0gm40iUHuJkpEnvGw== + v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" @@ -28949,6 +28985,20 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" +vertica-nodejs@^1.0.3: + version "1.1.4" + resolved "https://registry.npmjs.org/vertica-nodejs/-/vertica-nodejs-1.1.4.tgz#9df8c9f7f39b9067d518cec0f19f78fbd51b08f8" + integrity sha512-4nMNNjOQvImakYnN253SYYpkyvO2dx25ILlEbgMhZqx7yEOzCCxq8Ekh4VbPj1T6bCzR+3nQGKtAgy1wER3F/A== + dependencies: + buffer-writer "2.0.0" + glob "^7.1.6" + packet-reader "1.0.0" + pg-types "^2.1.0" + pgpass "1.x" + v-connection-string "1.1.1" + v-pool "1.1.4" + v-protocol "1.1.1" + victory-vendor@^36.6.8: version "36.9.2" resolved "https://registry.yarnpkg.com/victory-vendor/-/victory-vendor-36.9.2.tgz#668b02a448fa4ea0f788dbf4228b7e64669ff801" From 78a2119f3cf690dc92984ad3e5db52f1738ddbd5 Mon Sep 17 00:00:00 2001 From: timbrownls20 Date: Wed, 11 Dec 2024 10:34:03 +1000 Subject: [PATCH 29/33] change version of vertica driver --- packages/cubejs-vertica-driver/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 3ae71da6f9b0e..fc3994e03fc95 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -1,8 +1,8 @@ { - "name": "@knowitall/vertica-driver", + "name": "@cubejs-backend/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Cube Dev, Inc.", - "version": "0.32.4", + "version": "1.1.9", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", From 85d56a0cfec800baef161e0a6c49d1305aeb5665 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Wed, 8 Jan 2025 18:35:19 +0200 Subject: [PATCH 30/33] some ci-related fixes --- .github/actions/integration/vertica.sh | 2 +- .../src/db-container-runners/vertica.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/integration/vertica.sh b/.github/actions/integration/vertica.sh index c9c518accf952..4fe135ae0ded7 100755 --- a/.github/actions/integration/vertica.sh +++ b/.github/actions/integration/vertica.sh @@ -4,7 +4,7 @@ set -eo pipefail # Debug log for test containers export DEBUG=testcontainers -export TEST_VERTICA_VERSION=11.1.1-0 +export TEST_VERTICA_VERSION=12.0.4-0 echo "::group::Vertica ${TEST_VERTICA_VERSION}" docker pull vertica/vertica-ce:${TEST_VERTICA_VERSION} diff --git a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts index e9d4a31c95256..f36f9ba21a3af 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/vertica.ts @@ -3,14 +3,14 @@ import { DbRunnerAbstract } from './db-runner.abstract'; export class VerticaDBRunner extends DbRunnerAbstract { public static startContainer() { - const version = process.env.TEST_VERTICA_VERSION || '11.1.1-0'; + const version = process.env.TEST_VERTICA_VERSION || '12.0.4-0'; const container = new GenericContainer(`vertica/vertica-ce:${version}`) - .withEnvironment({ TZ: 'Antarctica/Troll', VERTICA_DB_NAME: 'test' }) + .withEnvironment({ TZ: 'Antarctica/Troll', VERTICA_DB_NAME: 'test', VMART_ETL_SCRIPT: '', VMART_ETL_SQL: '' }) .withExposedPorts(5433) .withStartupTimeout(60 * 1000) .withWaitStrategy( - Wait.forLogMessage('Node Status: v_test_node0001: (UP)') + Wait.forLogMessage('Vertica is now running') ); return container.start(); From 358c2b6bc44e7dbee03db46ca4b3d47fe8c4cf30 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Wed, 8 Jan 2025 19:00:06 +0200 Subject: [PATCH 31/33] fix version, names, refs to align with the Cube repo --- .github/workflows/drivers-tests.yml | 3 +- packages/cubejs-docker/package.json | 2 +- .../src/core/DriverDependencies.js | 2 +- .../birdbox-fixtures/vertica.yml | 4 +-- packages/cubejs-vertica-driver/README.md | 30 ++----------------- packages/cubejs-vertica-driver/package.json | 13 ++++---- 6 files changed, 15 insertions(+), 39 deletions(-) diff --git a/.github/workflows/drivers-tests.yml b/.github/workflows/drivers-tests.yml index 97f323a526dc3..1ab0154df375b 100644 --- a/.github/workflows/drivers-tests.yml +++ b/.github/workflows/drivers-tests.yml @@ -51,7 +51,7 @@ on: - 'packages/cubejs-postgres-driver/**' - 'packages/cubejs-snowflake-driver/**' - 'packages/cubejs-vertica-driver/**' - + # To test SQL API Push down - 'packages/cubejs-backend-native/**' - 'rust/cubesql/**' @@ -205,7 +205,6 @@ jobs: snowflake-export-bucket-azure snowflake-export-bucket-azure-via-storage-integration snowflake-export-bucket-gcs - vertica # As per docs: # Secrets cannot be directly referenced in if: conditionals. Instead, consider setting # secrets as job-level environment variables, then referencing the environment variables diff --git a/packages/cubejs-docker/package.json b/packages/cubejs-docker/package.json index ad230986d2d10..1feb8975b3bc4 100644 --- a/packages/cubejs-docker/package.json +++ b/packages/cubejs-docker/package.json @@ -36,8 +36,8 @@ "@cubejs-backend/snowflake-driver": "1.1.10", "@cubejs-backend/sqlite-driver": "1.1.10", "@cubejs-backend/trino-driver": "1.1.11", + "@cubejs-backend/vertica-driver": "1.1.11", "cubejs-cli": "1.1.11", - "@knowitall/vertica-driver": "^0.32.4", "typescript": "~5.2.2" }, "resolutions": { diff --git a/packages/cubejs-server-core/src/core/DriverDependencies.js b/packages/cubejs-server-core/src/core/DriverDependencies.js index e1c501dc90749..2c500681aa4f4 100644 --- a/packages/cubejs-server-core/src/core/DriverDependencies.js +++ b/packages/cubejs-server-core/src/core/DriverDependencies.js @@ -26,7 +26,7 @@ module.exports = { ksql: '@cubejs-backend/ksql-driver', questdb: '@cubejs-backend/questdb-driver', materialize: '@cubejs-backend/materialize-driver', - vertica: '@knowitall/vertica-driver', + vertica: '@cubejs-backend/vertica-driver', pinot: '@cubejs-backend/pinot-driver', // List for JDBC drivers 'databricks-jdbc': '@cubejs-backend/databricks-jdbc-driver', diff --git a/packages/cubejs-testing/birdbox-fixtures/vertica.yml b/packages/cubejs-testing/birdbox-fixtures/vertica.yml index 9b602497d7cb8..6a188c64a7a8c 100644 --- a/packages/cubejs-testing/birdbox-fixtures/vertica.yml +++ b/packages/cubejs-testing/birdbox-fixtures/vertica.yml @@ -11,7 +11,7 @@ services: CUBEJS_DB_PORT: 5433 CUBEJS_DB_NAME: vmart CUBEJS_DB_USER: dbadmin - CUBEJS_DB_PASS: + CUBEJS_DB_PASS: CUBEJS_DEV_MODE: "true" CUBEJS_WEB_SOCKETS: "true" @@ -33,7 +33,7 @@ services: db: container_name: birdbox-db - image: vertica/vertica-ce:11.1.1-0 + image: vertica/vertica-ce:12.0.4-0 ports: - "5433" restart: always diff --git a/packages/cubejs-vertica-driver/README.md b/packages/cubejs-vertica-driver/README.md index ab80626f6d050..34ae8827c5a99 100644 --- a/packages/cubejs-vertica-driver/README.md +++ b/packages/cubejs-vertica-driver/README.md @@ -11,38 +11,14 @@ Cube.js Vertica driver that uses [vertica-nodejs](https://github.com/vertica/ver [Learn more](https://github.com/cube-js/cube.js#getting-started) -### Project Status - -Project is WIP pending approval of [PR 7298](https://github.com/cube-js/cube/pull/7289). - -A recent build of cubejs with the vertica driver preinstalled is available as a public docker image while the project is WIP - -`docker pull timbrownls26/cubejs-vertica:0.0.1` - -### Installation - -`npm i @knowitall/vertica-driver` - -### Usage -#### For Docker - -Build development [docker image](https://github.com/cube-js/cube/blob/master/packages/cubejs-docker/DEVELOPMENT.md) from variant of cubejs in this [PR 7298](https://github.com/cube-js/cube/pull/7289). - -Assuming the built image is tagged `cubejs/cube:dev` - -``` -FROM cubejs/cube:dev - -RUN npm i @knowitall/vertica-driver -``` - -Note: This driver isn't supported by front-end so we can not use connection wizard to config vertica data source. Please use env instead. +Note: This driver isn't supported by front-end so we can not use connection wizard to config vertica data source. Please +use env instead. ``` environment: - CUBEJS_DB_TYPE=vertica - CUBEJS_DB_HOST= #host - - CUBEJS_DB_NAME= #database name + - CUBEJS_DB_NAME= #database name - CUBEJS_DB_PORT=5433 - CUBEJS_DB_USER= #database user - CUBEJS_DB_PASS= #database password diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index fc3994e03fc95..b08f1d72c2a26 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -1,15 +1,15 @@ { "name": "@cubejs-backend/vertica-driver", "description": "Cube.js Vertica database driver", - "author": "Cube Dev, Inc.", - "version": "1.1.9", + "author": "Eduard Karacharov, Tim Brown, Cube Dev, Inc.", + "version": "1.1.11", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", "directory": "packages/cubejs-vertica-driver" }, "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + "node": "^14.0.0 || ^16.0.0 || >=17.0.0" }, "main": "src/VerticaDriver.js", "scripts": { @@ -19,15 +19,16 @@ "lint:fix": "eslint --fix **/*.js" }, "dependencies": { - "@cubejs-backend/query-orchestrator": "1.1.8", - "@cubejs-backend/schema-compiler": "1.1.8", + "@cubejs-backend/base-driver": "1.1.10", + "@cubejs-backend/query-orchestrator": "1.1.10", + "@cubejs-backend/schema-compiler": "1.1.11", "moment-timezone": "^0.5.45", "vertica-nodejs": "^1.0.3" }, "license": "Apache-2.0", "devDependencies": { "@cubejs-backend/linter": "^1.0.0", - "@knowitall/testing-shared": "1.1.8", + "@cubejs-backend/testing-shared": "1.1.11", "jest": "^27.5.1", "testcontainers": "^10.13.0" }, From c47627352c8724119540d8b0f779f16b50723a8a Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Wed, 8 Jan 2025 19:05:08 +0200 Subject: [PATCH 32/33] update yarn.lock --- yarn.lock | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/yarn.lock b/yarn.lock index e99a7120118d1..53c9337505411 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5084,20 +5084,6 @@ throttle-debounce "^3.0.1" uuid "^8.3.2" -"@cubejs-backend/testing-shared@1.1.8": - version "1.1.8" - resolved "https://registry.npmjs.org/@cubejs-backend/testing-shared/-/testing-shared-1.1.8.tgz#2a8b2c7c5ae16d311980f6198f85586f067f7555" - integrity sha512-Gq1n+Q85aoQyn5/STitWpLh3243tQWBId3C+52HTAVdbaHGKJMm05G7O5EXLFt7Nc5NGHBROP2WTOCkkoxTNoQ== - dependencies: - "@cubejs-backend/dotenv" "^9.0.2" - "@cubejs-backend/query-orchestrator" "1.1.8" - "@cubejs-backend/schema-compiler" "1.1.8" - "@cubejs-backend/shared" "1.1.8" - "@testcontainers/kafka" "~10.13.0" - dedent "^0.7.0" - node-fetch "^2.6.7" - testcontainers "^10.13.0" - "@cubejs-infra/post-installer@^0.0.7": version "0.0.7" resolved "https://registry.yarnpkg.com/@cubejs-infra/post-installer/-/post-installer-0.0.7.tgz#a28d2d03e5b7b69a64020d75194a7078cf911d2d" From 87c9920134447250d1583efa683a62c6a8e4a04d Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Wed, 8 Jan 2025 19:24:36 +0200 Subject: [PATCH 33/33] fix old refs --- packages/cubejs-testing/test/smoke-vertica.test.ts | 2 +- packages/cubejs-vertica-driver/test/VerticaDriver.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cubejs-testing/test/smoke-vertica.test.ts b/packages/cubejs-testing/test/smoke-vertica.test.ts index e4aea35b10400..6c8ccb9a9c611 100644 --- a/packages/cubejs-testing/test/smoke-vertica.test.ts +++ b/packages/cubejs-testing/test/smoke-vertica.test.ts @@ -1,7 +1,7 @@ import fetch from 'node-fetch'; import { StartedTestContainer } from 'testcontainers'; // eslint-disable-next-line import/no-extraneous-dependencies -import { VerticaDBRunner } from '@knowitall/testing-shared'; +import { VerticaDBRunner } from '@cubejs-backend/testing-shared'; import cubejs, { CubeApi, Query } from '@cubejs-client/core'; import { afterAll, beforeAll, expect, jest } from '@jest/globals'; import { BirdBox, getBirdbox } from '../src'; diff --git a/packages/cubejs-vertica-driver/test/VerticaDriver.test.js b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js index 9a9540451e7b4..fde3950ea6bd8 100644 --- a/packages/cubejs-vertica-driver/test/VerticaDriver.test.js +++ b/packages/cubejs-vertica-driver/test/VerticaDriver.test.js @@ -1,5 +1,5 @@ /* globals describe, afterAll, beforeAll, test, expect, jest */ -const { VerticaDBRunner } = require('@knowitall/testing-shared'); +const { VerticaDBRunner } = require('@cubejs-backend/testing-shared'); const VerticaDriver = require('../src/VerticaDriver.js'); describe('VerticaDriver', () => {