Skip to content

Commit

Permalink
Merge pull request apache#24195: Website update keywords table
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanenko-dev committed Dec 12, 2022
2 parents 6ed0cf5 + a845bba commit 59849d6
Show file tree
Hide file tree
Showing 14 changed files with 74 additions and 49 deletions.
15 changes: 15 additions & 0 deletions website/www/site/assets/scss/_table-wrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,18 @@ $padding: 24px;
@extend .table-bordered;
}
}

.table-wrapper--equal-p {
td:nth-child(n) {
@media (max-width: $mobile) {
padding: $padding/4 !important;
}
padding: $padding !important;
}
}

.table-wrapper--pr {
td, th {
padding-right: $padding/1.5;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ including arrays, maps, and nested rows. This page documents supported
In Java, these types are mapped to Java types large enough to hold the
full range of values.

{{< table >}}
{{< table class="table-wrapper--equal-p" >}}
| SQL Type | Description | Java class |
| --------- | ------------ | ---------- |
| TINYINT | 1 byte signed integer in range -128 to 127 | java.lang.Byte |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Case Sensitivity

Beam SQL follows these rules for case sensitivity:

<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Category</th>
Expand Down Expand Up @@ -336,7 +336,7 @@ language, and have the following characteristics:
Beam SQL has the following reserved keywords.

<div class="table-container-wrapper">
<table style="table-layout: fixed; width: 110%">
<table style="width: 100%" class="table-wrapper--equal-p">
<tbody>
<tr>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ TBLPROPERTIES '{"format: "Excel"}'
the field delimeter, quote character, record separator, and other properties.
See the following table:

<div class="table-container-wrapper">
{{< table class="table-bordered" >}}
| Value for `format` | Field delimiter | Quote | Record separator | Ignore empty lines? | Allow missing column names? |
|--------------------|-----------------|-------|------------------|---------------------|-----------------------------|
Expand All @@ -615,6 +616,7 @@ TBLPROPERTIES '{"format: "Excel"}'
| `tdf` | `\t` | `"` | `\r\n` | Yes | No |
| `mysql` | `\t` | none | `\n` | No | No |
{{< /table >}}
</div>

### Read Mode

Expand Down Expand Up @@ -684,4 +686,4 @@ DLQ handling are supported:
* `pubsub`: Pub/Sub Topic
* DLQ_ID is the full path of the Pub/Sub Topic.
* `pubsublite`: Pub/Sub Lite Topic
* DLQ_ID is the full path of the Pub/Sub Lite Topic.
* DLQ_ID is the full path of the Pub/Sub Lite Topic.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
This page documents the ZetaSQL scalar functions supported by Beam ZetaSQL.

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Syntax</th>
Expand Down Expand Up @@ -112,4 +112,4 @@ supertype; equality comparison is done on coerced values.</td>
</tr>
</tbody>
</table>
{{< /table >}}
{{< /table >}}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Conversion includes, but is not limited to, casting and coercion:
The table below summarizes all possible `CAST`s and coercions. "Coercion To" applies to all *expressions* of a given data type (e.g. a column).

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>From Type</th>
Expand Down Expand Up @@ -128,7 +128,7 @@ byte sequence is not valid UTF-8 results in a runtime error.
When casting an expression `x` of the following types, these rules apply:

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<tr>
<th>From</th>
<th>To</th>
Expand Down Expand Up @@ -190,4 +190,4 @@ target STRUCT field types (as defined by field order, not field name).</li>
## Coercion

Beam SQL coerces the result type of an expression to another type if
needed to match function signatures. For example, if function func() is defined to take a single argument of type INT64 and an expression is used as an argument that has a result type of FLOAT64, then the result of the expression will be coerced to INT64 type before func() is computed.
needed to match function signatures. For example, if function func() is defined to take a single argument of type INT64 and an expression is used as an argument that has a result type of FLOAT64, then the result of the expression will be coerced to INT64 type before func() is computed.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ each property applies to:</p>

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Property</th>
Expand Down Expand Up @@ -107,7 +107,7 @@ Types</a> for an explanation of join conditions.

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Name</th>
Expand All @@ -132,7 +132,7 @@ Types</a> for an explanation of join conditions.

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Name</th>
Expand Down Expand Up @@ -236,7 +236,7 @@ throws an `IllegalArgumentException`.

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Name</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ double (<code>"</code>) quotation marks, or <em>triple-quoted</em> with groups o

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Literal</th>
Expand Down Expand Up @@ -347,7 +347,7 @@ TIMESTAMP '2014-09-27 12:30:00 America/Argentina/Buenos_Aires'</code></pre>

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Category</th>
Expand Down Expand Up @@ -422,7 +422,7 @@ language, and have the following characteristics:</p>

<div class="table-container-wrapper">
{{< table >}}
<table style="table-layout: fixed; width: 110%">
<table style="width: 100%" class="table-wrapper--equal-p">
<tbody>
<tr>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type) that is not greater than X.
Example behavior of Cloud Dataflow SQL rounding functions:

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Input "X"</th>
Expand Down Expand Up @@ -129,4 +129,4 @@ Example behavior of Cloud Dataflow SQL rounding functions:
</tr>
</tbody>
</table>
{{< /table >}}
{{< /table >}}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ lowest precedence. Precedence determines the order in which operators will be ev

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Order of Precedence</th>
Expand Down Expand Up @@ -251,7 +251,7 @@ is recommended over:

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Operator</th>
Expand Down Expand Up @@ -323,7 +323,7 @@ has type T unless otherwise indicated in the description below:
Result types for Addition and Multiplication:

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr><th>&nbsp;</th><th>INT64</th><th>FLOAT64</th></tr>
</thead>
Expand All @@ -334,7 +334,7 @@ Result types for Addition and Multiplication:
Result types for Subtraction:

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr><th>&nbsp;</th><th>INT64</th><th>FLOAT64</th></tr>
</thead>
Expand All @@ -345,7 +345,7 @@ Result types for Subtraction:
Result types for Division:

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr><th>&nbsp;</th><th>INT64</th><th>FLOAT64</th></tr>
</thead>
Expand Down Expand Up @@ -385,7 +385,7 @@ All logical operators allow only BOOL input.

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Name</th>
Expand Down Expand Up @@ -448,7 +448,7 @@ The following rules apply when comparing these data types:

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Name</th>
Expand Down Expand Up @@ -533,7 +533,7 @@ The following table demonstrates how STRUCT data
types are compared when they have fields that are `NULL` valued.

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Struct1</th>
Expand Down Expand Up @@ -571,7 +571,7 @@ is inverted.

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>Function Syntax</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ illustrate the behavior of different query clauses.</p>
<p>Table Roster:</p>

{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>LastName</th>
Expand Down Expand Up @@ -801,7 +801,7 @@ assigned to their school (SchoolID).</p>

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>LastName</th>
Expand Down Expand Up @@ -888,7 +888,7 @@ ON Roster.SchoolID = TeamMascot.SchoolID;</code></pre>

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>LastName</th>
Expand Down Expand Up @@ -934,7 +934,7 @@ ON Roster.SchoolID = TeamMascot.SchoolID;</code></pre>

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>LastName</th>
Expand Down Expand Up @@ -993,7 +993,7 @@ ON Roster.SchoolID = TeamMascot.SchoolID;</code></pre>

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>LastName</th>
Expand Down Expand Up @@ -1046,7 +1046,7 @@ ON Roster.SchoolID = TeamMascot.SchoolID;</code></pre>

<div class="table-container-wrapper">
{{< table >}}
<table>
<table class="table-wrapper--equal-p">
<thead>
<tr>
<th>LastName</th>
Expand Down
Loading

0 comments on commit 59849d6

Please sign in to comment.