Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Frank Bertsch efb49cf738
Dryrun stored procedures (#1367)
* Dryrun stored procedures

* Reformat SQL

* Update tests for reformatted sql

* Fix doc format again

* Let black run past max-line-length

Black does not mandate line-length, it only tries to adhere to it.
For that reason, we can't have flake8 fail at too-long line length.

https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length

* Why doesn't pydoctest run locally?

* Apply suggestions from code review

Co-authored-by: Anna Scholtz <anna@scholtzan.net>

Co-authored-by: Anna Scholtz <anna@scholtzan.net>
2020-10-01 16:48:28 -04:00
Frank Bertsch 3caa5eb382
Event analysis udfs (#1343)
* WIP: Event analysis UDFs

* WIP: Some stored procedures for working with events

* Add UDF descriptions && move datasets

* Add capabilities for testing procedures

* Add procedures for creating funnel views

* Dryrun stored procedures

* Add support for count queries to events view

* Remove legacy stored procedures

* Remove dryruns

* Add explicit count support

* Change SQL to work around sqlparse bug

See https://github.com/andialbrecht/sqlparse/issues/583

* Run black

* Reformat SQL

* Reformat assertion

* Fix doc issues

* Add stored procedure test file

* Flake8 issue

* Reformat last file

* Ignore pre-colon whitespace failure

* Also ignore line breaks before binary operators

* Apply suggestions from code review

Co-authored-by: Anna Scholtz <anna@scholtzan.net>

* Fix sql lint

Co-authored-by: Anna Scholtz <anna@scholtzan.net>
2020-09-29 16:33:38 -04:00
Daniel Thorn 79070068ad
Add first test (#9) 2019-03-07 12:43:21 -08:00