Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add dimensional tests to Blueprint DSL #1894

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

christopherswenson
Copy link
Contributor

@christopherswenson christopherswenson commented Sep 12, 2024

Replaces #1891

Adds the ability to include test cases in dialect function definitions, e.g.:

const date_format: DefinitionBlueprint = {
  ...
  tests: [
    [
      'date_format(@2024-09-05 17:03:55, "%Y-%m-%d %H:%i:%S")',
      '2024-09-05 17:03:55',
    ],
  ],
};

As mentioned in #1891, this only works for dimensional tests, as aggregate and window function tests are more complicated. I'm looking into making something that works for those, too.

Signed-off-by: Christopher Swenson <[email protected]>
…'t seem to work with timezones correctly

Signed-off-by: Christopher Swenson <[email protected]>
Signed-off-by: Christopher Swenson <[email protected]>
Signed-off-by: Christopher Swenson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant