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

10 Коммитов

Автор SHA1 Сообщение Дата
Sean Rose 4bbbc32a5b
Put assert UDFs in `mozfun` project (#4367)
* Put assert UDFs in `mozfun` project.

* Tweak syntax in `assert.array_equals()` to avoid SQLGlot parsing error.
  https://github.com/tobymao/sqlglot/issues/2348

* Fix SQL syntax error in `assert.struct_equals()` tests.

* Fix UDF dependency file path logic when deploying to stage.

* Change regular expressions in `parse_routine` module to allow quotes around routines' dataset and name.
2023-10-13 10:58:42 -07:00
Daniel Thorn a190e18264
Automatically sort python imports (#1840) 2021-02-24 17:11:52 -05:00
jailang f0f9b5f56a Update routine tests
Fix linting errors

Fix pydocstyle linting error

Update tests and fix linting errors
2020-11-17 15:03:20 -08:00
Anna Scholtz b0aec90544 Fix UDF tests 2020-10-08 10:30:22 -07:00
Anna Scholtz 67c5265b6f Rename udf module to routine 2020-10-08 10:30:22 -07:00
Anna Scholtz 22d8798ef0 Rename functions that process UDFs and stored procedures to routine 2020-10-08 10:30:22 -07:00
Anna Scholtz 268ea08e81 Add tests for UDF description publishing 2020-09-16 10:40:42 -07:00
Anna Scholtz 94212a1479 Publish UDF descriptions 2020-09-16 10:40:42 -07:00
Anna Scholtz 437cf67aa2 Refactor parse_udf 2020-09-02 10:24:38 -07:00
Frank Bertsch bd7be1606c
Bug 1632635 - FxA Amplitude export for active events (#941)
* WIP: Initial implementation of FxA Amplitude export

* Use submission_date parameter

* Add hmac-sha256 SQL implementation

* Escape language column name

Co-Authored-By: Jeff Klukas <jeff@klukas.net>

* Use hmac_sha256; update for review feedback

* Reformat sql files

* Add docs for HMAC implementation

* Validate hmac_sha256 against NIST test vectors

* Add filepath as from_text arg

Co-authored-by: Daniel Thorn <dthorn@mozilla.com>

* Explicitly use named argument

Co-authored-by: Daniel Thorn <dthorn@mozilla.com>

* Add docs for hmac validation

* WIP: Derive os_used_week/month as incremental query

* Retrieve hmac_key from encrypted keys table

Co-authored-by: Jeff Klukas <jeff@klukas.net>

* Remove fxa_hmac param

* Reformat SQL files

* Use bytes_seen for os_used

* Rename udfs

* Format UDF sql

* Don't include NULL os values

* Don't include NULL user properties

* Update comment for UDF

* Use fully-named datasets, not fxa*

* Cast key_id to bytes

* Fix failing tests

* Fix test failures

* Use new dataset for view query

* Add access denied exception for secret access

* Remove flake8 changes

* Update description of fxa_amplitude_export

Co-authored-by: Jeff Klukas <jeff@klukas.net>

* Remove version suffix from view

Co-authored-by: Jeff Klukas <jeff@klukas.net>
Co-authored-by: Daniel Thorn <dthorn@mozilla.com>
2020-05-05 22:37:26 -04:00