Repository navigation
Commit b561c90
feat: parity batch 19 (SQL engines register functions at init; Timestream function reference and intervals; Athena Trino functions; Service Quotas usage and enforcement) (#2555)
* feat(timestreamquery): the documented function reference, interval arithmetic, non-finite doubles, guarded constants
Adds the documented functions the engine lacked (array set operations,
zip, repeat, shuffle, base conversion, bit operations, skewness and
regression aggregates, n-ary max_by and min_by, weighted percentiles,
quantified comparisons, VALUES lists and more) and asserts the reference
examples. Intervals add, subtract, scale and compare. NaN and Infinity
come out of every producing expression consistently. A constant inside an
untaken branch is no longer evaluated.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
* fix: SQL engines register their functions at init under their own prefix; Timestream sequence and interval edge cases
The SQLite driver iterates its function table without a lock when a
connection opens, so one engine registering lazily while another opened a
connection could end the process with a concurrent map fault. Athena,
BigQuery and Timestream now register during package init. Timestream's
remaining plain-named functions move under its prefix and calls are
qualified before execution; a guard and a cross-engine test keep every
engine's names apart. Zero-argument sequence and integral calls hung,
extreme sequence bounds ran away, a negated year-month interval was zero
and log10 was off by one ulp at exact powers of ten.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
* feat(servicequotas): usage and opt-in enforcement for 51 more resource-count quotas
CloudWatch Logs, KMS, EventBridge, Step Functions, Route 53, ECR, Auto
Scaling, EFS, Firehose, Cognito and the EC2 and VPC resource quotas report
live usage. With --enforce-service-quotas the create operations whose API
documents a limit error fail at the applied value. Every catalogued quota
is classified, and a guard fails when a counted quota has no counter.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
* feat(athena): array set operations, sequence, repeat, zip, base conversion, bit and statistical aggregates and more Trino functions
Several of these resolved in Athena only because another engine had
registered them under plain names in the shared function table. Athena
now implements them itself. Names that are not Trino functions stay
unregistered.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
* fix(servicequotas): enforce the documented EC2 limit codes, read the KMS grant limit in the key's Region, pin the refresh delay in the Auto Scaling test
EC2 documents limit codes for subnets, internet gateways, security groups
and their rules, route tables and vCPUs, so those quotas are enforced
under the flag as well as counted. CreateGrant looked up its limit in the
request's Region. The instance refresh test raced a fixed 100ms
transition. The quota classification data is corrected where a name
pattern misfiled entries.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
* fix(athena): an embedding engine keeps the functions it owns and sees none of the standalone-only ones
Timestream runs on Athena's translator, which rewrote sequence, repeat,
zip, skewness and other names to Athena's new implementations before
Timestream could claim them, and exposed Athena-only functions to
Timestream queries. The embedded entry point now takes the set of names
the host owns and skips standalone-only functions. The Timestream parser
no longer reads past the end of a truncated cast.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
* docs: regenerate service READMEs
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
* test(app): split the EC2 quota limit cases into named builders
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
---------
Co-authored-by: Witness Patrol <blackbird7181@gmail.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>1 parent 2b0616d commit b561c90
142 files changed
Lines changed: 15760 additions & 192 deletions
File tree
- internal/app
- testdata
- services
- athena
- autoscaling
- cloudwatchlogs
- cognitoidentity
- cognitoidp
- ec2
- ecr
- efs
- eventbridge
- firehose
- gcpbigquery/bqsql
- kms
- route53
- servicequotas
- stepfunctions
- timestreamquery
- testdata/fuzz/FuzzAnnotateQuery
- test
- crossengine
- guards
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
| 751 | + | |
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | | - | |
| 797 | + | |
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
0 commit comments