@@ -981,6 +981,8 @@ functionCall = composite , "." , functionIdentifier , [ "(" , [ expression , { "
981
981
982
982
atom = ( "(" , expression , ")" ) | literal | nullLiteral | fieldReference ;
983
983
984
+ fieldReference = "* " | identifier ;
985
+
984
986
nullLiteral = "Null(" , dataType , ")" ;
985
987
986
988
timeIntervalUnit = "YEAR" | "YEAR_TO_MONTH" | "MONTH" | "DAY" | "DAY_TO_HOUR" | "DAY_TO_MINUTE" | "DAY_TO_SECOND" | "HOUR" | "HOUR_TO_MINUTE" | "HOUR_TO_SECOND" | "MINUTE" | "MINUTE_TO_SECOND" | "SECOND" ;
@@ -989,7 +991,7 @@ timePointUnit = "YEAR" | "MONTH" | "DAY" | "HOUR" | "MINUTE" | "SECOND" | "QUART
989
991
990
992
{% endhighlight %}
991
993
992
- Here, ` literal ` is a valid Java literal, ` fieldReference ` specifies a column in the data, and ` functionIdentifier ` specifies a supported scalar function. The
994
+ Here, ` literal ` is a valid Java literal, ` fieldReference ` specifies a column in the data (or all columns if ` * ` is used) , and ` functionIdentifier ` specifies a supported scalar function. The
993
995
column names and function names follow Java identifier syntax. Expressions specified as Strings can also use prefix notation instead of suffix notation to call operators and functions.
994
996
995
997
If working with exact numeric values or large decimals is required, the Table API also supports Java's BigDecimal type. In the Scala Table API decimals can be defined by ` BigDecimal("123456") ` and in Java by appending a "p" for precise e.g. ` 123456p ` .
@@ -1521,6 +1523,61 @@ TIMEPOINT.ceil(TIMEINTERVALUNIT)
1521
1523
</td >
1522
1524
</tr >
1523
1525
1526
+ <tr>
1527
+ <td>
1528
+ {% highlight java %}
1529
+ currentDate()
1530
+ {% endhighlight %}
1531
+ </td >
1532
+ <td >
1533
+ <p >Returns the current SQL date in UTC time zone.</p >
1534
+ </td >
1535
+ </tr >
1536
+
1537
+ <tr>
1538
+ <td>
1539
+ {% highlight java %}
1540
+ currentTime()
1541
+ {% endhighlight %}
1542
+ </td >
1543
+ <td >
1544
+ <p >Returns the current SQL time in UTC time zone.</p >
1545
+ </td >
1546
+ </tr >
1547
+
1548
+ <tr>
1549
+ <td>
1550
+ {% highlight java %}
1551
+ currentTimestamp()
1552
+ {% endhighlight %}
1553
+ </td >
1554
+ <td >
1555
+ <p >Returns the current SQL timestamp in UTC time zone.</p >
1556
+ </td >
1557
+ </tr >
1558
+
1559
+ <tr>
1560
+ <td>
1561
+ {% highlight java %}
1562
+ localTime()
1563
+ {% endhighlight %}
1564
+ </td >
1565
+ <td >
1566
+ <p >Returns the current SQL time in local time zone.</p >
1567
+ </td >
1568
+ </tr >
1569
+
1570
+ <tr>
1571
+ <td>
1572
+ {% highlight java %}
1573
+ localTimestamp()
1574
+ {% endhighlight %}
1575
+ </td >
1576
+ <td >
1577
+ <p >Returns the current SQL timestamp in local time zone.</p >
1578
+ </td >
1579
+ </tr >
1580
+
1524
1581
</tbody >
1525
1582
</table >
1526
1583
@@ -1828,6 +1885,61 @@ TIMEPOINT.ceil(TimeIntervalUnit)
1828
1885
</td >
1829
1886
</tr >
1830
1887
1888
+ <tr>
1889
+ <td>
1890
+ {% highlight scala %}
1891
+ currentDate()
1892
+ {% endhighlight %}
1893
+ </td >
1894
+ <td >
1895
+ <p >Returns the current SQL date in UTC time zone.</p >
1896
+ </td >
1897
+ </tr >
1898
+
1899
+ <tr>
1900
+ <td>
1901
+ {% highlight scala %}
1902
+ currentTime()
1903
+ {% endhighlight %}
1904
+ </td >
1905
+ <td >
1906
+ <p >Returns the current SQL time in UTC time zone.</p >
1907
+ </td >
1908
+ </tr >
1909
+
1910
+ <tr>
1911
+ <td>
1912
+ {% highlight scala %}
1913
+ currentTimestamp()
1914
+ {% endhighlight %}
1915
+ </td >
1916
+ <td >
1917
+ <p >Returns the current SQL timestamp in UTC time zone.</p >
1918
+ </td >
1919
+ </tr >
1920
+
1921
+ <tr>
1922
+ <td>
1923
+ {% highlight scala %}
1924
+ localTime()
1925
+ {% endhighlight %}
1926
+ </td >
1927
+ <td >
1928
+ <p >Returns the current SQL time in local time zone.</p >
1929
+ </td >
1930
+ </tr >
1931
+
1932
+ <tr>
1933
+ <td>
1934
+ {% highlight scala %}
1935
+ localTimestamp()
1936
+ {% endhighlight %}
1937
+ </td >
1938
+ <td >
1939
+ <p >Returns the current SQL timestamp in local time zone.</p >
1940
+ </td >
1941
+ </tr >
1942
+
1831
1943
</tbody >
1832
1944
</table >
1833
1945
</div >
@@ -2093,6 +2205,61 @@ CEIL(TIMEPOINT TO TIMEINTERVALUNIT)
2093
2205
</td >
2094
2206
</tr >
2095
2207
2208
+ <tr>
2209
+ <td>
2210
+ {% highlight sql %}
2211
+ CURRENT_DATE
2212
+ {% endhighlight %}
2213
+ </td >
2214
+ <td >
2215
+ <p >Returns the current SQL date in UTC time zone.</p >
2216
+ </td >
2217
+ </tr >
2218
+
2219
+ <tr>
2220
+ <td>
2221
+ {% highlight sql %}
2222
+ CURRENT_TIME
2223
+ {% endhighlight %}
2224
+ </td >
2225
+ <td >
2226
+ <p >Returns the current SQL time in UTC time zone.</p >
2227
+ </td >
2228
+ </tr >
2229
+
2230
+ <tr>
2231
+ <td>
2232
+ {% highlight sql %}
2233
+ CURRENT_TIMESTAMP
2234
+ {% endhighlight %}
2235
+ </td >
2236
+ <td >
2237
+ <p >Returns the current SQL timestamp in UTC time zone.</p >
2238
+ </td >
2239
+ </tr >
2240
+
2241
+ <tr>
2242
+ <td>
2243
+ {% highlight sql %}
2244
+ LOCALTIME
2245
+ {% endhighlight %}
2246
+ </td >
2247
+ <td >
2248
+ <p >Returns the current SQL time in local time zone.</p >
2249
+ </td >
2250
+ </tr >
2251
+
2252
+ <tr>
2253
+ <td>
2254
+ {% highlight sql %}
2255
+ LOCALTIMESTAMP
2256
+ {% endhighlight %}
2257
+ </td >
2258
+ <td >
2259
+ <p >Returns the current SQL timestamp in local time zone.</p >
2260
+ </td >
2261
+ </tr >
2262
+
2096
2263
</tbody >
2097
2264
</table >
2098
2265
</div >
0 commit comments