Skip to content

Commit

Permalink
New Deployment for Fri Jul 12 07:10:16 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 12, 2024
1 parent 3346e88 commit a79af16
Show file tree
Hide file tree
Showing 21 changed files with 227 additions and 190 deletions.
11 changes: 11 additions & 0 deletions docs/database/supported-functions/trino/datetime-functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,17 @@ function now() returns timestamp

[🔗 Official Documentation](https://trino.io/docs/current/functions/datetime.html#now)

## `quarter`

Returns the quarter of the year from x. The value ranges from 1 to 4.

*Supported Signatures*
```sql
function quarter(date) returns bigint
function quarter(timestamp(p)) returns bigint
```
[🔗 Official Documentation](https://trino.io/docs/current/functions/datetime.html#quarter)

## `second`

Returns the second of the minute from x.
Expand Down
11 changes: 11 additions & 0 deletions docs/database/supported-functions/trino/math-functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ function log2(double) returns double
```
[🔗 Official Documentation](https://trino.io/docs/current/functions/math.html#log2)

## `mod`

Returns the modulus (remainder) of n divided by m.

*Supported Signatures*
```sql
function mod(bigint, bigint) returns bigint
function mod(double, double) returns double
```
[🔗 Official Documentation](https://trino.io/docs/current/functions/math.html#mod)

## `pi`

Returns the constant Pi.
Expand Down
20 changes: 10 additions & 10 deletions docs/guide/data-quality/checks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Let's write and modify a check, starting with one of the sdf samples.
    Created hello_with_pii/checks/code_check.sql
    Created hello_with_pii/models/main.sql
    Created hello_with_pii/workspace.sdf.yml
   Finished new in 0.099 secs
   Finished new in 0.280 secs

</code>
</pre>
Expand Down Expand Up @@ -71,7 +71,7 @@ Working&nbsp;set&nbsp;1&nbsp;model&nbsp;file,&nbsp;1&nbsp;.sdf&nbsp;file
&nbsp;&nbsp;Compiling&nbsp;hello.pub.main&nbsp;(./models/main.sql)
Working&nbsp;set&nbsp;1&nbsp;test&nbsp;file,&nbsp;1&nbsp;.sdf&nbsp;file
&nbsp;&nbsp;&nbsp;&nbsp;Testing&nbsp;hello.pub.code_check&nbsp;(./checks/code_check.sql)
&nbsp;&nbsp;&nbsp;Finished&nbsp;1&nbsp;model&nbsp;[1&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;passed]&nbsp;in&nbsp;1.020&nbsp;secs
&nbsp;&nbsp;&nbsp;Finished&nbsp;1&nbsp;model&nbsp;[1&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;passed]&nbsp;in&nbsp;1.195&nbsp;secs
[Pass]&nbsp;Check&nbsp;hello.pub.code_check
</code>
Expand Down Expand Up @@ -115,18 +115,18 @@ Working&nbsp;set&nbsp;1&nbsp;model&nbsp;file,&nbsp;1&nbsp;.sdf&nbsp;file
&nbsp;&nbsp;Compiling&nbsp;hello.pub.main&nbsp;(./models/main.sql)
Working&nbsp;set&nbsp;1&nbsp;test&nbsp;file,&nbsp;1&nbsp;.sdf&nbsp;file
&nbsp;&nbsp;&nbsp;&nbsp;Testing&nbsp;hello.pub.code_check&nbsp;(./checks/code_check.sql)
&nbsp;&nbsp;&nbsp;Finished&nbsp;1&nbsp;model&nbsp;[1&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;failed]&nbsp;in&nbsp;1.020&nbsp;secs,&nbsp;for&nbsp;details&nbsp;see&nbsp;below.
&nbsp;&nbsp;&nbsp;Finished&nbsp;1&nbsp;model&nbsp;[1&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;failed]&nbsp;in&nbsp;1.190&nbsp;secs,&nbsp;for&nbsp;details&nbsp;see&nbsp;below.
[Fail]&nbsp;Check&nbsp;hello.pub.code_check
┌────────────┬─────────────┬─────────────┐
│&nbsp;table_name&nbsp;┆&nbsp;column&nbsp;name&nbsp;┆&nbsp;classifiers&nbsp;│
╞════════════╪═════════════╪═════════════╡
│&nbsp;main&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;┆&nbsp;column_2&nbsp;&nbsp;&nbsp;&nbsp;┆&nbsp;[PII.name]&nbsp;&nbsp;│
└────────────┴─────────────┴─────────────┘
┌────────────┬───────────────┬─────────────┐
│&nbsp;table_name&nbsp;┆&nbsp;&quot;column&nbsp;name&quot;&nbsp;┆&nbsp;classifiers&nbsp;│
╞════════════╪═══════════════╪═════════════╡
│&nbsp;main&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;┆&nbsp;column_2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;┆&nbsp;[PII.name]&nbsp;&nbsp;│
└────────────┴───────────────┴─────────────┘
1&nbsp;rows.
-------
Summary&nbsp;1&nbsp;model&nbsp;[1&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;failed]&nbsp;in&nbsp;1.020&nbsp;secs.
Summary&nbsp;1&nbsp;model&nbsp;[1&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;failed]&nbsp;in&nbsp;1.190&nbsp;secs.
-------
</code>
Expand Down Expand Up @@ -188,7 +188,7 @@ Working&nbsp;set&nbsp;2&nbsp;model&nbsp;files,&nbsp;1&nbsp;.sdf&nbsp;file
&nbsp;&nbsp;Compiling&nbsp;hello.pub.sink&nbsp;(./models/sink.sql)
Working&nbsp;set&nbsp;1&nbsp;test&nbsp;file,&nbsp;1&nbsp;.sdf&nbsp;file
&nbsp;&nbsp;&nbsp;&nbsp;Testing&nbsp;hello.pub.code_check&nbsp;(./checks/code_check.sql)
&nbsp;&nbsp;&nbsp;Finished&nbsp;2&nbsp;models&nbsp;[2&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;passed]&nbsp;in&nbsp;1.028&nbsp;secs
&nbsp;&nbsp;&nbsp;Finished&nbsp;2&nbsp;models&nbsp;[2&nbsp;succeeded],&nbsp;1&nbsp;check&nbsp;[1&nbsp;passed]&nbsp;in&nbsp;1.209&nbsp;secs
[Pass]&nbsp;Check&nbsp;hello.pub.code_check
</code>
Expand Down
Loading

0 comments on commit a79af16

Please sign in to comment.