You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@PrettyWood COOL! How do people "include" the math... or str... modules? (Or are they built-in?)
And probably a little farther afield, how can people define new modules? I know this was planned, but (I think) disabled. Where does it stand now? Thanks again.
@richb-hanovermath and str modules are available automatically since they are in fact std.math and std.str. @vanillajonathan I added in #3913 the str module that contains lower, upper and other string related functions
If this whole approach is validated, we could definitely add other modules like hash
(personally I really want to work on a module for date + time management afterwards because for BI purposes, it's almost mandatory)
The reason will be displayed to describe this comment to others. Learn more.
If you have the patience — let's integrate this with the item above, since they can be handled as one change. Fine to list more than one PR under one change.
It would be nice to have an test-dbs integration test, so make sure the results are what we expect them to be on all dbms.
@aljazerzen Totally agree ! This is why I introduced rstest in the str (or text or string) submodule.
My plan is to use that (and maybe some macro on top of it) to test the outputs for all the supported dialects
test-dbs does more than that: it executes the queries on a sample chinook database.
Yes the advantage of these is that it'll test a) on a real database, b) in CI (or locally using Docker) it'll test against every supported database. So things like quotes / CONCAT we can let the tests check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.