├── .github
└── workflows
│ └── release.yml
├── .gitignore
├── LICENSE
├── README.md
├── clickhouse_jdbc
├── Readme.md
├── connection-fields.xml
├── connection-metadata.xml
├── connectionBuilder.js
├── connectionProperties.js
├── connectionResolver.tdr
├── dialect.tdd
└── manifest.xml
└── signing_utility
├── pkcs11properties.cfg
└── smpkcs11.so
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | name: release
2 | on:
3 | workflow_dispatch:
4 | release:
5 | types: [created]
6 | jobs:
7 | build:
8 | runs-on: ubuntu-latest
9 | steps:
10 | - name: Checkout Tableau Connector Plugin SDK
11 | uses: actions/checkout@v3
12 | with:
13 | repository: tableau/connector-plugin-sdk
14 | ref: tableau-2023.2
15 |
16 | - name: Checkout ClickHouse Tableau JDBC connector
17 | uses: actions/checkout@v3
18 | with:
19 | path: clickhouse-tableau-jdbc
20 |
21 | - name: Set up Python
22 | uses: actions/setup-python@v4
23 | with:
24 | python-version: 3.9
25 |
26 | - name: Package the connector
27 | working-directory: connector-packager
28 | run: |
29 | python -m venv .venv
30 | source ./.venv/bin/activate
31 | python setup.py install
32 | python -m connector_packager.package ../clickhouse-tableau-jdbc/clickhouse_jdbc
33 | echo "TACO_FILE=$(find "$PWD" -name 'clickhouse*.taco' | head -n 1)" >> $GITHUB_ENV
34 |
35 | - name: Set up Java for signing
36 | uses: actions/setup-java@v3
37 | with:
38 | java-version: '11'
39 | distribution: 'zulu'
40 |
41 | - name: Prepare for signing
42 | working-directory: clickhouse-tableau-jdbc/signing_utility
43 | run: |
44 | cp ./smpkcs11.so /tmp/smpkcs11.so
45 | echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > /tmp/Certificate_pkcs12.p12
46 | echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
47 | echo "SM_API_KEY=${{ secrets.SM_API_KEY }}" >> "$GITHUB_ENV"
48 | echo "SM_CLIENT_CERT_FILE=/tmp/Certificate_pkcs12.p12" >> "$GITHUB_ENV"
49 | echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV"
50 | echo "DIGICERT_KEY_ALIAS=${{ secrets.DIGICERT_KEY_ALIAS }}" >> "$GITHUB_ENV"
51 | shell: bash
52 |
53 | - name: Sign binary
54 | working-directory: clickhouse-tableau-jdbc/signing_utility
55 | run: |
56 | jarsigner -keystore NONE -storepass NONE -storetype PKCS11 -sigalg SHA256withRSA -providerClass sun.security.pkcs11.SunPKCS11 -providerArg pkcs11properties.cfg -signedjar clickhouse_jdbc_signed.taco $TACO_FILE $DIGICERT_KEY_ALIAS -tsa http://timestamp.digicert.com
57 | shell: bash
58 |
59 | - name: Upload the taco
60 | uses: actions/upload-artifact@v4
61 | with:
62 | name: clickhouse_jdbc_signed.taco
63 | path: clickhouse-tableau-jdbc/signing_utility/clickhouse_jdbc_signed.taco
64 | if-no-files-found: error
65 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2016-2023 ClickHouse, Inc.
2 |
3 | Apache License
4 | Version 2.0, January 2004
5 | http://www.apache.org/licenses/
6 |
7 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8 |
9 | 1. Definitions.
10 |
11 | "License" shall mean the terms and conditions for use, reproduction,
12 | and distribution as defined by Sections 1 through 9 of this document.
13 |
14 | "Licensor" shall mean the copyright owner or entity authorized by
15 | the copyright owner that is granting the License.
16 |
17 | "Legal Entity" shall mean the union of the acting entity and all
18 | other entities that control, are controlled by, or are under common
19 | control with that entity. For the purposes of this definition,
20 | "control" means (i) the power, direct or indirect, to cause the
21 | direction or management of such entity, whether by contract or
22 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
23 | outstanding shares, or (iii) beneficial ownership of such entity.
24 |
25 | "You" (or "Your") shall mean an individual or Legal Entity
26 | exercising permissions granted by this License.
27 |
28 | "Source" form shall mean the preferred form for making modifications,
29 | including but not limited to software source code, documentation
30 | source, and configuration files.
31 |
32 | "Object" form shall mean any form resulting from mechanical
33 | transformation or translation of a Source form, including but
34 | not limited to compiled object code, generated documentation,
35 | and conversions to other media types.
36 |
37 | "Work" shall mean the work of authorship, whether in Source or
38 | Object form, made available under the License, as indicated by a
39 | copyright notice that is included in or attached to the work
40 | (an example is provided in the Appendix below).
41 |
42 | "Derivative Works" shall mean any work, whether in Source or Object
43 | form, that is based on (or derived from) the Work and for which the
44 | editorial revisions, annotations, elaborations, or other modifications
45 | represent, as a whole, an original work of authorship. For the purposes
46 | of this License, Derivative Works shall not include works that remain
47 | separable from, or merely link (or bind by name) to the interfaces of,
48 | the Work and Derivative Works thereof.
49 |
50 | "Contribution" shall mean any work of authorship, including
51 | the original version of the Work and any modifications or additions
52 | to that Work or Derivative Works thereof, that is intentionally
53 | submitted to Licensor for inclusion in the Work by the copyright owner
54 | or by an individual or Legal Entity authorized to submit on behalf of
55 | the copyright owner. For the purposes of this definition, "submitted"
56 | means any form of electronic, verbal, or written communication sent
57 | to the Licensor or its representatives, including but not limited to
58 | communication on electronic mailing lists, source code control systems,
59 | and issue tracking systems that are managed by, or on behalf of, the
60 | Licensor for the purpose of discussing and improving the Work, but
61 | excluding communication that is conspicuously marked or otherwise
62 | designated in writing by the copyright owner as "Not a Contribution."
63 |
64 | "Contributor" shall mean Licensor and any individual or Legal Entity
65 | on behalf of whom a Contribution has been received by Licensor and
66 | subsequently incorporated within the Work.
67 |
68 | 2. Grant of Copyright License. Subject to the terms and conditions of
69 | this License, each Contributor hereby grants to You a perpetual,
70 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71 | copyright license to reproduce, prepare Derivative Works of,
72 | publicly display, publicly perform, sublicense, and distribute the
73 | Work and such Derivative Works in Source or Object form.
74 |
75 | 3. Grant of Patent License. Subject to the terms and conditions of
76 | this License, each Contributor hereby grants to You a perpetual,
77 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78 | (except as stated in this section) patent license to make, have made,
79 | use, offer to sell, sell, import, and otherwise transfer the Work,
80 | where such license applies only to those patent claims licensable
81 | by such Contributor that are necessarily infringed by their
82 | Contribution(s) alone or by combination of their Contribution(s)
83 | with the Work to which such Contribution(s) was submitted. If You
84 | institute patent litigation against any entity (including a
85 | cross-claim or counterclaim in a lawsuit) alleging that the Work
86 | or a Contribution incorporated within the Work constitutes direct
87 | or contributory patent infringement, then any patent licenses
88 | granted to You under this License for that Work shall terminate
89 | as of the date such litigation is filed.
90 |
91 | 4. Redistribution. You may reproduce and distribute copies of the
92 | Work or Derivative Works thereof in any medium, with or without
93 | modifications, and in Source or Object form, provided that You
94 | meet the following conditions:
95 |
96 | (a) You must give any other recipients of the Work or
97 | Derivative Works a copy of this License; and
98 |
99 | (b) You must cause any modified files to carry prominent notices
100 | stating that You changed the files; and
101 |
102 | (c) You must retain, in the Source form of any Derivative Works
103 | that You distribute, all copyright, patent, trademark, and
104 | attribution notices from the Source form of the Work,
105 | excluding those notices that do not pertain to any part of
106 | the Derivative Works; and
107 |
108 | (d) If the Work includes a "NOTICE" text file as part of its
109 | distribution, then any Derivative Works that You distribute must
110 | include a readable copy of the attribution notices contained
111 | within such NOTICE file, excluding those notices that do not
112 | pertain to any part of the Derivative Works, in at least one
113 | of the following places: within a NOTICE text file distributed
114 | as part of the Derivative Works; within the Source form or
115 | documentation, if provided along with the Derivative Works; or,
116 | within a display generated by the Derivative Works, if and
117 | wherever such third-party notices normally appear. The contents
118 | of the NOTICE file are for informational purposes only and
119 | do not modify the License. You may add Your own attribution
120 | notices within Derivative Works that You distribute, alongside
121 | or as an addendum to the NOTICE text from the Work, provided
122 | that such additional attribution notices cannot be construed
123 | as modifying the License.
124 |
125 | You may add Your own copyright statement to Your modifications and
126 | may provide additional or different license terms and conditions
127 | for use, reproduction, or distribution of Your modifications, or
128 | for any such Derivative Works as a whole, provided Your use,
129 | reproduction, and distribution of the Work otherwise complies with
130 | the conditions stated in this License.
131 |
132 | 5. Submission of Contributions. Unless You explicitly state otherwise,
133 | any Contribution intentionally submitted for inclusion in the Work
134 | by You to the Licensor shall be under the terms and conditions of
135 | this License, without any additional terms or conditions.
136 | Notwithstanding the above, nothing herein shall supersede or modify
137 | the terms of any separate license agreement you may have executed
138 | with Licensor regarding such Contributions.
139 |
140 | 6. Trademarks. This License does not grant permission to use the trade
141 | names, trademarks, service marks, or product names of the Licensor,
142 | except as required for reasonable and customary use in describing the
143 | origin of the Work and reproducing the content of the NOTICE file.
144 |
145 | 7. Disclaimer of Warranty. Unless required by applicable law or
146 | agreed to in writing, Licensor provides the Work (and each
147 | Contributor provides its Contributions) on an "AS IS" BASIS,
148 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149 | implied, including, without limitation, any warranties or conditions
150 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151 | PARTICULAR PURPOSE. You are solely responsible for determining the
152 | appropriateness of using or redistributing the Work and assume any
153 | risks associated with Your exercise of permissions under this License.
154 |
155 | 8. Limitation of Liability. In no event and under no legal theory,
156 | whether in tort (including negligence), contract, or otherwise,
157 | unless required by applicable law (such as deliberate and grossly
158 | negligent acts) or agreed to in writing, shall any Contributor be
159 | liable to You for damages, including any direct, indirect, special,
160 | incidental, or consequential damages of any character arising as a
161 | result of this License or out of the use or inability to use the
162 | Work (including but not limited to damages for loss of goodwill,
163 | work stoppage, computer failure or malfunction, or any and all
164 | other commercial damages or losses), even if such Contributor
165 | has been advised of the possibility of such damages.
166 |
167 | 9. Accepting Warranty or Additional Liability. While redistributing
168 | the Work or Derivative Works thereof, You may choose to offer,
169 | and charge a fee for, acceptance of support, warranty, indemnity,
170 | or other liability obligations and/or rights consistent with this
171 | License. However, in accepting such obligations, You may act only
172 | on Your own behalf and on Your sole responsibility, not on behalf
173 | of any other Contributor, and only if You agree to indemnify,
174 | defend, and hold each Contributor harmless for any liability
175 | incurred by, or claims asserted against, such Contributor by reason
176 | of your accepting any such warranty or additional liability.
177 |
178 | END OF TERMS AND CONDITIONS
179 |
180 | APPENDIX: How to apply the Apache License to your work.
181 |
182 | To apply the Apache License to your work, attach the following
183 | boilerplate notice, with the fields enclosed by brackets "[]"
184 | replaced with your own identifying information. (Don't include
185 | the brackets!) The text should be enclosed in the appropriate
186 | comment syntax for the file format. We also recommend that a
187 | file or class name and description of purpose be included on the
188 | same "printed page" as the copyright notice for easier
189 | identification within third-party archives.
190 |
191 | Copyright 2016-2023 ClickHouse, Inc.
192 |
193 | Licensed under the Apache License, Version 2.0 (the "License");
194 | you may not use this file except in compliance with the License.
195 | You may obtain a copy of the License at
196 |
197 | http://www.apache.org/licenses/LICENSE-2.0
198 |
199 | Unless required by applicable law or agreed to in writing, software
200 | distributed under the License is distributed on an "AS IS" BASIS,
201 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202 | See the License for the specific language governing permissions and
203 | limitations under the License.
204 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ClickHouse Tableau JDBC connector
2 |
3 | ## Intro
4 |
5 | This is an extension for Tableau Desktop / Tableau Server that simplifies the process of connecting Tableau to ClickHouse and extends support for standard Tableau functionality when working with ClickHouse (as compared to Generic ODBC/JDBC)
6 |
7 | ## Features
8 |
9 | - In comparison with **Other Databases (ODBC)**: this connector uses the JDBC driver, which is faster than the ODBC driver in some cases (for example, creating Extracts), and is also much easier to install than ODBC (a cross-platform jar file, which does not require compiling for individual platforms).
10 | - In comparison with **Other Databases (JDBC)**: this connector has fine-tuning SQL queries to implement most of the standard Tableau functionality (including multiple JOINS in the data source, Sets, etc.), and it has a friendly connection dialog ;)
11 |
12 | ## Before you install
13 |
14 | Requirements
15 | - Tableau **2020.4+**
16 | - ClickHouse **20.7+**
17 |
18 | ## Installation (Tableau Desktop)
19 | 1. Download the [Clickhouse JDBC Driver](https://github.com/ClickHouse/clickhouse-java/releases) (version 0.8.X required), and place the `clickhouse-jdbc-0.8.X-shaded-all.jar` to:
20 | - macOS: `~/Library/Tableau/Drivers`
21 | - Windows: `C:\Program Files\Tableau\Drivers`
22 | - You need to create the folder if it doesn't already exist
23 | 2. Download the latest `clickhouse-jdbc.taco` from the [Releases](https://github.com/ClickHouse/clickhouse-tableau-connector-jdbc/releases) page, and place it to:
24 | - macOS: `~/Documents/My Tableau Repository/Connectors`
25 | - Windows: `C:\Users\[Windows User]\Documents\My Tableau Repository\Connectors`
26 | 3. Run Tableau Desktop
27 | 4. In Tableau Desktop: **Connect** ➔ **To a Server** ➔ **ClickHouse JDBC by ClickHouse, Inc.**
28 |
29 | ## Installation (Tableau Prep Builder)
30 | 1. Download the [Clickhouse JDBC Driver](https://github.com/ClickHouse/clickhouse-java/releases) (version 0.8.X required), and place the `clickhouse-jdbc-0.8.X-shaded-all.jar` to:
31 | - macOS: `~/Library/Tableau/Drivers`
32 | - Windows: `C:\Program Files\Tableau\Drivers`
33 | - You need to create the folder if it doesn't already exist
34 | 2. Download the latest `clickhouse-jdbc.taco` from the [Releases](https://github.com/ClickHouse/clickhouse-tableau-connector-jdbc/releases) page and place it to:
35 | - macOS: `~/Documents/My Tableau Prep Repository/Connectors`
36 | - Windows: `C:\Users\[Windows User]\Documents\My Tableau Prep Repository\Connectors`
37 | 3. Run Tableau Prep Builder
38 | 4. In Tableau Prep Builder: **Connections** ➔ **+** ➔ **To a Server** ➔ **ClickHouse JDBC by ClickHouse, Inc.**
39 |
40 | ## Installation (Tableau Server)
41 | 1. Download the [Clickhouse JDBC Driver](https://github.com/ClickHouse/clickhouse-java/releases) (version 0.8.X required), and place the `clickhouse-jdbc-0.8.X-shaded-all.jar` to:
42 | - Linux: `/opt/tableau/tableau_driver/jdbc`
43 | - Windows: `C:\Program Files\Tableau\Drivers`
44 | - You need to create the directory if it doesn't already exist
45 | - *For Linux:* make sure directory is readable by the "tableau" user. To do this:
46 | - Create the directory:
47 | ```
48 | sudo mkdir -p /opt/tableau/tableau_driver/jdbc
49 | ```
50 | - Copy the downloaded driver file to the location, replacing `[/path/to/file]` with the path and `[driver file name]` with the name of the driver you downloaded:
51 | ```
52 | sudo cp [/path/to/file/][driver file name].jar /opt/tableau/tableau_driver/jdbc
53 | ```
54 | - Set permissions so the file is readable by the "tableau" user, replacing `[driver file name]` with the name of the driver you downloaded:
55 | ```
56 | sudo chmod 755 /opt/tableau/tableau_driver/jdbc/[driver file name].jar
57 | ```
58 | 2. Download the latest `clickhouse-jdbc.taco` from the [Releases](https://github.com/ClickHouse/clickhouse-tableau-connector-jdbc/releases) page and place it into these folders on each node:
59 | - Linux: `/opt/tableau/connectors`
60 | - Windows: `C:\Program Files\Tableau\Connectors`
61 | 3. Restart the server.
62 | ```
63 | tsm restart
64 | ```
65 | - Note that whenever you add, remove, or update a connector, you need to restart the server to see the changes.
66 | ## Connection tips
67 | ### Initial SQL tab
68 | If the *Set Session ID* checkbox is activated on the Advanced tab (by default), feel free to set session level [settings](https://clickhouse.com/docs/en/operations/settings/settings/) using
69 | ```
70 | SET my_setting=value;
71 | ```
72 | ### Advanced tab
73 | In 99% of cases you don't need the Advanced tab, for the remaining 1% you can use the following settings:
74 | - **Custom Connection Parameters**. By default, `socket_timeout` is already specified, this parameter may need to be changed if some extracts are updated for a very long time. The value of this parameter is specified in milliseconds. The rest of the parameters can be found [here](https://github.com/ClickHouse/clickhouse-jdbc/blob/master/clickhouse-client/src/main/java/com/clickhouse/client/config/ClickHouseClientOption.java), add them in this field separated by commas
75 | - **JDBC Driver custom_http_params**. This field allows you to drop some parameters into the ClickHouse connection string by passing values to the [`custom_http_params` parameter of the driver](https://github.com/ClickHouse/clickhouse-jdbc#configuration). For example, this is how `session_id` is specified when the *Set Session ID* checkbox is activated
76 | - **JDBC Driver typeMappings**. This field allows you to [pass a list of ClickHouse data type mappings to Java data types used by the JDBC driver](https://github.com/ClickHouse/clickhouse-jdbc#configuration). The connector automatically displays large Integers as strings thanks to this parameter, you can change this by passing your mapping set *(I do not know why)* using
77 | ```
78 | UInt256=java.lang.Double,Int256=java.lang.Double
79 | ```
80 | Read more about mapping in the corresponding section
81 |
82 | - **JDBC Driver URL Parameters**. You can pass the remaining [driver parameters](https://github.com/ClickHouse/clickhouse-jdbc#configuration), for example `jdbcCompliance`, in this field. Be careful, the parameter values must be passed in the URL Encoded format, and in the case of passing `custom_http_params` or `typeMappings` in this field and in the previous fields of the Advanced tab, the values of the preceding two fields on the Advanced tab have a higher priority
83 | - **Set Session ID** checkbox. It is needed to set session-level settings in Initial SQL tab, generates a `session_id` with a timestamp and a pseudo-random number in the format "tableau-jdbc-connector-*{timestamp}*-*{number}*"
84 | ### Limited support for UInt64, Int128, (U)Int256 data types
85 | By default, the driver displays fields of types *UInt64, Int128, (U)Int256* as strings, **but it displays, not converts**. This means that when you try to write the next calculated field, you will get an error
86 | ```
87 | LEFT([myUInt256], 2) // Error!
88 | ```
89 | In order to work with large Integer fields as with strings, it is necessary to explicitly wrap the field in the STR() function
90 | ```
91 | LEFT(STR([myUInt256]), 2) // Works well!
92 | ```
93 | However, such fields are most often used to find the number of unique values *(IDs as Watch ID, Visit ID in Yandex.Metrika)* or as a *Dimension* to specify the detail of the visualization, it works well.
94 | ```
95 | COUNTD([myUInt256]) // Works well too!
96 | ```
97 | When using the data preview (View data) of a table with UInt64 fields, an error does not appear now.
98 | ## Analysis tips
99 | ### MEDIAN() and PERCENTILE() functions
100 | - In Live mode the MEDIAN() and PERCENTILE() functions (since connector v0.1.3 release) use the [ClickHouse quantile()() function](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/quantile/), which significantly speeds up the calculation, but uses sampling. If you want to get accurate calculation results, then use functions `MEDIAN_EXACT()` and `PERCENTILE_EXACT()` (based on [quantileExact()()](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/quantileexact/)).
101 | - In Extract mode you can't use MEDIAN_EXACT() and PERCENTILE_EXACT() because MEDIAN() and PERCENTILE() are always accurate (and slow).
102 | ### Additional functions for Calculated Fields in Live mode
103 | ClickHouse has a huge number of functions that can be used for data analysis — much more than Tableau supports. For the convenience of users, we have added new functions that are available for use in Live mode when creating Calculated Fields. Unfortunately, it is not possible to add descriptions to these functions in the Tableau interface, so we will add a description for them right here.
104 | - **[`-If` Aggregation Combinator](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/combinators/#-if)** *(added in v0.2.3)* - allows to have Row-Level Filters right in the Aggregate Calculation. `SUM_IF(), AVG_IF(), COUNT_IF(), MIN_IF() & MAX_IF()` functions have been added.
105 | - **`BAR([my_int], [min_val_int], [max_val_int], [bar_string_length_int])`** *(added in v0.2.1)* — Forget about boring bar charts! Use `BAR()` function instead (equivalent of [`bar()`](https://clickhouse.com/docs/en/sql-reference/functions/other-functions/#function-bar) in ClickHouse). For example, this calculated field returns nice bars as String:
106 | ```
107 | BAR([my_int], [min_val_int], [max_val_int], [bar_string_length_int]) + " " + FORMAT_READABLE_QUANTITY([my_int])
108 | ```
109 | ```
110 | == BAR() ==
111 | ██████████████████▊ 327.06 million
112 | █████ 88.02 million
113 | ███████████████ 259.37 million
114 | ```
115 | - **`COUNTD_UNIQ([my_field])`** *(added in v0.2.0)* — Calculates the approximate number of different values of the argument. Equivalent of [uniq()](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/uniq/). Much faster than COUNTD().
116 | - **`DATE_BIN('day', 10, [my_datetime_or_date])`** *(added in v0.2.1)* — equivalent of [`toStartOfInterval()`](https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions/#tostartofintervaltime-or-data-interval-x-unit-time-zone) in ClickHouse. Rounds down a Date or Date & Time to the given interval, for example:
117 | ```
118 | == my_datetime_or_date == | == DATE_BIN('day', 10, [my_datetime_or_date]) ==
119 | 28.07.2004 06:54:50 | 21.07.2004 00:00:00
120 | 17.07.2004 14:01:56 | 11.07.2004 00:00:00
121 | 14.07.2004 07:43:00 | 11.07.2004 00:00:00
122 | ```
123 | - **`FORMAT_READABLE_QUANTITY([my_integer])`** *(added in v0.2.1)* — Returns a rounded number with a suffix (thousand, million, billion, etc.) as a string. It is useful for reading big numbers by human. Equivalent of [`formatReadableQuantity()`](https://clickhouse.com/docs/en/sql-reference/functions/other-functions/#formatreadablequantityx).
124 | - **`FORMAT_READABLE_TIMEDELTA([my_integer_timedelta_sec], [optional_max_unit])`** *(added in v0.2.1)* — Accepts the time delta in seconds. Returns a time delta with (year, month, day, hour, minute, second) as a string. `optional_max_unit` is maximum unit to show. Acceptable values: `seconds`, `minutes`, `hours`, `days`, `months`, `years`. Equivalent of [`formatReadableTimeDelta()`](https://clickhouse.com/docs/en/sql-reference/functions/other-functions/#formatreadabletimedelta).
125 | - **`GET_SETTING([my_setting_name])`** *(added in v0.2.1)* — Returns the current value of a custom setting. Equivalent of [`getSetting()`](https://clickhouse.com/docs/en/sql-reference/functions/other-functions/#getSetting).
126 | - **`HEX([my_string])`** *(added in v0.2.1)* — Returns a string containing the argument’s hexadecimal representation. Equivalent of [`hex()`](https://clickhouse.com/docs/en/sql-reference/functions/encoding-functions/#hex).
127 | - **`KURTOSIS([my_number])`** — Computes the sample kurtosis of a sequence. Equivalent of [`kurtSamp()`](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/kurtsamp/#kurtsamp).
128 | - **`KURTOSISP([my_number])`** — Computes the kurtosis of a sequence. The equivalent of [`kurtPop()`](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/kurtpop/#kurtpop).
129 | - **`MEDIAN_EXACT([my_number])`** *(added in v0.1.3)* — Exactly computes the median of a numeric data sequence. Equivalent of [`quantileExact(0.5)(...)`](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/quantileexact/#quantileexact).
130 | - **`MOD([my_number_1], [my_number_2])`** — Calculates the remainder after division. If arguments are floating-point numbers, they are pre-converted to integers by dropping the decimal portion. Equivalent of [`modulo()`](https://clickhouse.com/docs/en/sql-reference/functions/arithmetic-functions/#modulo).
131 | - **`PERCENTILE_EXACT([my_number], [level_float])`** *(added in v0.1.3)* — Exactly computes the percentile of a numeric data sequence. The recommended level range is [0.01, 0.99]. Equivalent of [`quantileExact()()`](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/quantileexact/#quantileexact).
132 | - **`PROPER([my_string])`** *(added in v0.2.5)* - Converts a text string so the first letter of each word is capitalized and the remaining letters are in lowercase. Spaces and non-alphanumeric characters such as punctuation also act as separators. For example:
133 | ```
134 | PROPER("PRODUCT name") => "Product Name"
135 | ```
136 | ```
137 | PROPER("darcy-mae") => "Darcy-Mae"
138 | ```
139 | - **`RAND()`** *(added in v0.2.1)* — returns integer (UInt32) number, for example `3446222955`. Equivalent of [`rand()`](https://clickhouse.com/docs/en/sql-reference/functions/random-functions/#rand).
140 | - **`RANDOM()`** *(added in v0.2.1)* — unofficial [`RANDOM()`](https://kb.tableau.com/articles/issue/random-function-produces-inconsistent-results) Tableau function, which returns float between 0 and 1.
141 | - **`RAND_CONSTANT([optional_field])`** *(added in v0.2.1)* — Produces a constant column with a random value. Something like `{RAND()}` Fixed LOD, but faster. Equivalent of [`randConstant()`](https://clickhouse.com/docs/en/sql-reference/functions/random-functions/#randconstant).
142 | - **`REAL([my_number])`** — Casts field to float (Float64). Details [`here`](https://clickhouse.com/docs/en/sql-reference/data-types/decimal/#operations-and-result-type).
143 | - **`SHA256([my_string])`** *(added in v0.2.1)* — Calculates SHA-256 hash from a string and returns the resulting set of bytes as a string (FixedString). Convenient to use with the `HEX()` function, for example, `HEX(SHA256([my_string]))`. Equivalent of [`SHA256()`](https://clickhouse.com/docs/en/sql-reference/functions/hash-functions/#sha).
144 | - **`SKEWNESS([my_number])`** — Computes the sample skewness of a sequence. Equivalent of [`skewSamp()`](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/skewsamp/#skewsamp).
145 | - **`SKEWNESSP([my_number])`** — Computes the skewness of a sequence. Equivalent of [`skewPop()`](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/skewpop/#skewpop).
146 | - **`TO_TYPE_NAME([field])`** *(added in v0.2.1)* — Returns a string containing the ClickHouse type name of the passed argument. Equivalent of [`toTypeName()`](https://clickhouse.com/docs/en/sql-reference/functions/other-functions/#totypenamex).
147 | - **`TRUNC([my_float])`** — It is the same as the `FLOOR([my_float])` function. Equivalent of [`trunc()`](https://clickhouse.com/docs/en/sql-reference/functions/rounding-functions/#truncx-n-truncatex-n).
148 | - **`UNHEX([my_string])`** *(added in v0.2.1)* — Performs the opposite operation of `HEX()`. Equivalent of [`unhex()`](https://clickhouse.com/docs/en/sql-reference/functions/encoding-functions/#unhexstr).
149 |
150 | ## Future plans
151 | - Publishing the connector at [exchange.tableau.com](https://exchange.tableau.com/connectors)
152 |
153 | ## Tests
154 | The connector is being tested with the [TDVT framework](https://tableau.github.io/connector-plugin-sdk/docs/tdvt) and currently maintains a 97% coverage ratio.
155 |
156 | ## Acknowledgement
157 |
158 | Originally developed by [ANALYTIKA PLUS](https://analytikaplus.ru?utm_source=github&utm_medium=repo&utm_campaign=tableau_clickhouse_connector)
159 |
--------------------------------------------------------------------------------
/clickhouse_jdbc/Readme.md:
--------------------------------------------------------------------------------
1 | ClickHouse Tableau JDBC Connector.
--------------------------------------------------------------------------------
/clickhouse_jdbc/connection-fields.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/clickhouse_jdbc/connection-metadata.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/clickhouse_jdbc/connectionBuilder.js:
--------------------------------------------------------------------------------
1 | (function dsbuilder(attr) {
2 | // setting custom HTTP parameterss
3 | var customHttpParams = {};
4 |
5 | // fix IN/OUT Top-N Sets
6 | customHttpParams['join_use_nulls'] = 1;
7 |
8 | // parsing custom_http_params
9 | if(attr['v-custom-http-params'] && attr['v-custom-http-params'].length > 0){
10 | var customParams = attr['v-custom-http-params'].split(',');
11 | for(var i = 0; i < customParams.length; i++){
12 | var param = customParams[i].split('=');
13 | customHttpParams[param[0]] = param[1];
14 | }
15 | }
16 |
17 | // setting session_id
18 | if(attr['v-set-session-id'] == "true"){
19 | customHttpParams['session_id'] = "tableau-jdbc-connector-" + Date.now() + "-" + Math.floor(Math.random() * (Math.floor(10000000) - Math.ceil(1) + 1)) + Math.ceil(1);
20 | }
21 |
22 | var customHttpParamsArr = [];
23 | for (var key in customHttpParams){
24 | customHttpParamsArr.push(key + "=" + customHttpParams[key]);
25 | }
26 |
27 | // preparing customUrlParams
28 | var customUrlParams = {};
29 |
30 | if(attr['v-custom-url-params'] && attr['v-custom-url-params'].length > 0){
31 | var customParams = attr['v-custom-url-params'].split(',');
32 | for(var i = 0; i < customParams.length; i++){
33 | var param = customParams[i].split('=');
34 | customUrlParams[param[0]] = param[1];
35 | }
36 | }
37 |
38 | // default type mappings
39 | typeMappings = {'UInt64': 'java.lang.String',
40 | 'UInt128': 'java.lang.String',
41 | 'Int128': 'java.lang.String',
42 | 'UInt256': 'java.lang.String',
43 | 'Int256': 'java.lang.String'};
44 |
45 | // setting custom type mappings
46 | if(attr['v-custom-type-mappings'] && attr['v-custom-type-mappings'].length > 0){
47 | var customTypeMappings = attr['v-custom-type-mappings'].split(',');
48 | for(var i in customTypeMappings){
49 | var customTypeMapping = customTypeMappings[i].split('=');
50 | typeMappings[customTypeMapping[0]] = customTypeMapping[1];
51 | }
52 | }
53 |
54 | var typeMappingsArr = [];
55 | for (var key in typeMappings){
56 | typeMappingsArr.push(key + "=" + typeMappings[key]);
57 | }
58 |
59 | // updating some URL params
60 | customUrlParams['custom_http_params'] = customHttpParamsArr.join(',');
61 | customUrlParams['typeMappings'] = typeMappingsArr.join(',');
62 |
63 | // building encoded URL params string
64 | var customUrlParamsArr = [];
65 | for (var key in customUrlParams){
66 | customUrlParamsArr.push(key + "=" + encodeURIComponent(customUrlParams[key]));
67 | }
68 |
69 | var customUrlParamsString = customUrlParamsArr.join('&');
70 |
71 | // building full URL string
72 | var urlBuilder = "jdbc:clickhouse://" + attr['server'] + ":" + attr['port']
73 | + "/?" + customUrlParamsString;
74 | return [urlBuilder];
75 | })
--------------------------------------------------------------------------------
/clickhouse_jdbc/connectionProperties.js:
--------------------------------------------------------------------------------
1 | (function propertiesbuilder(attr) {
2 | var props = {};
3 |
4 | // setting custom Connection Parameters
5 | if(attr["v-custom-connection-params"] && attr["v-custom-connection-params"].length > 0){
6 | var customParams = attr["v-custom-connection-params"].split(',');
7 | for(var i = 0; i < customParams.length; i++){
8 | var param = customParams[i].split('=');
9 | props[param[0]] = param[1];
10 | }
11 | }
12 |
13 | props["user"] = attr["username"];
14 | props["password"] = attr["password"];
15 |
16 | if (attr["sslmode"] == "require") {
17 | props["ssl"] = "true";
18 | props["sslmode"] = "STRICT";
19 | }
20 |
21 | return props;
22 | })
--------------------------------------------------------------------------------
/clickhouse_jdbc/connectionResolver.tdr:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | server
12 | port
13 | authentication
14 | username
15 | password
16 | sslmode
17 | v-custom-connection-params
18 | v-custom-http-params
19 | v-custom-type-mappings
20 | v-custom-url-params
21 | v-set-session-id
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/clickhouse_jdbc/dialect.tdd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | ABS(%1)
9 |
10 |
11 |
12 | ABS(%1)
13 |
14 |
15 |
16 | ACOS(%1)
17 |
18 |
19 |
20 | ASIN(%1)
21 |
22 |
23 |
24 | ATAN(%1)
25 |
26 |
27 |
28 | ATAN2(%1,%2)
29 |
30 |
31 |
32 |
33 | CEILING(%1)
34 |
35 |
36 |
37 | CEILING(%1)
38 |
39 |
40 |
41 | CEILING(%1)
42 |
43 |
44 |
45 | COS(%1)
46 |
47 |
48 |
49 | CASE WHEN TAN(%1) = 0 THEN NULL ELSE 1/TAN(%1) END
50 |
51 |
52 |
53 | (%1 * 180 / PI())
54 |
55 |
56 |
57 | intDivOrZero(%1, nullIf(%2,0))
58 |
59 |
60 |
61 |
62 | EXP(%1)
63 |
64 |
65 |
66 | FLOOR(%1)
67 |
68 |
69 |
70 | FLOOR(%1)
71 |
72 |
73 |
74 | FLOOR(%1)
75 |
76 |
77 |
78 | (((CASE WHEN (ABS((%2) - (CAST( ( (%2) / SQRT(3.0) ) AS NUMERIC(18, 0) ) * SQRT(3.0)))) + SQRT(3.0) * ((ABS((%1) - (CAST( ( (%1) / 3.0 ) AS NUMERIC(18, 0) ) * 3.0))) - 1.0) > 0.0 THEN 1.5 ELSE 0.0 END) - (CASE WHEN ((%1) - (CAST( ( (%1) / 3.0 ) AS NUMERIC(18, 0) ) * 3.0) < 0.0) AND ((CASE WHEN (ABS((%2) - (CAST( ( (%2) / SQRT(3.0) ) AS NUMERIC(18, 0) ) * SQRT(3.0)))) + SQRT(3.0) * ((ABS((%1) - (CAST( ( (%1) / 3.0 ) AS NUMERIC(18, 0) ) * 3.0))) - 1.0) > 0.0 THEN 1.5 ELSE 0.0 END) > 0.0) THEN 3.0 ELSE 0.0 END)) + (CAST( ( (%1) / 3.0 ) AS NUMERIC(18, 0) ) * 3.0))
79 |
80 |
81 |
82 |
83 | ROUND( (((CASE WHEN (ABS((%2) - (ROUND( ( (%2) / SQRT(3.0) ), 0 ) * SQRT(3.0)))) + SQRT(3.0) * ((ABS((%1) - (ROUND( ( (%1) / 3.0 ), 0 ) * 3.0))) - 1.0) > 0.0 THEN SQRT(3.0) / 2.0 ELSE 0.0 END) - (CASE WHEN ((%2) - (ROUND( ( (%2) / SQRT(3.0) ), 0 ) * SQRT(3.0)) < 0.0) AND ((CASE WHEN (ABS((%2) - (ROUND( ( (%2) / SQRT(3.0) ), 0 ) * SQRT(3.0)))) + SQRT(3.0) * ((ABS((%1) - (ROUND( ( (%1) / 3.0 ), 0 ) * 3.0))) - 1.0) > 0.0 THEN SQRT(3.0) / 2.0 ELSE 0.0 END) > 0.0) THEN SQRT(3.0) ELSE 0.0 END)) + (ROUND( ( (%2) / SQRT(3.0) ), 0 ) * SQRT(3.0))), 3)
84 |
85 |
86 |
87 |
88 | if(%1 > 0, LN(%1), NULL)
89 |
90 |
91 |
92 | if(%1 > 0, LOG10(%1), NULL)
93 |
94 |
95 |
96 | if(%1 > 0 AND %2 > 0, LN(%1) / LN(%2), NULL)
97 |
98 |
99 |
100 |
101 | if(%1 > 0, LOG2(%1), NULL)
102 |
103 |
104 |
105 | if(or(%1 IS NULL, %2 IS NULL), NULL, GREATEST(%1, %2))
106 |
107 |
108 |
109 |
110 | if(or(%1 IS NULL, %2 IS NULL), NULL, GREATEST(%1, %2))
111 |
112 |
113 |
114 |
115 | if(or(%1 IS NULL, %2 IS NULL), NULL, LEAST(%1, %2))
116 |
117 |
118 |
119 |
120 | if(or(%1 IS NULL, %2 IS NULL), NULL, LEAST(%1, %2))
121 |
122 |
123 |
124 |
125 | MOD(%1,%2)
126 |
127 |
128 |
129 |
130 | PI()
131 |
132 |
133 | POWER(%1,%2)
134 |
135 |
136 |
137 |
138 | POWER(%1,%2)
139 |
140 |
141 |
142 |
143 | POWER(%1,%2)
144 |
145 |
146 |
147 |
148 | (%1 * atan(1) / 45)
149 |
150 |
151 |
152 | rand()
153 |
154 |
155 | rand()/4294967295
156 |
157 |
158 | randConstant()
159 |
160 |
161 | randConstant(%1)
162 |
163 |
164 |
165 | randConstant(%1)
166 |
167 |
168 |
169 | randConstant(%1)
170 |
171 |
172 |
173 | randConstant(%1)
174 |
175 |
176 |
177 | randConstant(%1)
178 |
179 |
180 |
181 | randConstant(%1)
182 |
183 |
184 |
185 | ROUND(%1, 0)
186 |
187 |
188 |
189 | ROUND(%1, %2)
190 |
191 |
192 |
193 |
194 | ROUND(CAST(%1 as Nullable(Double)), cast(%2 as Integer))
195 |
196 |
197 |
198 |
199 | SIGN(%1)
200 |
201 |
202 |
203 | SIN(%1)
204 |
205 |
206 |
207 | if(%1 >= 0, SQRT(%1), NULL)
208 |
209 |
210 |
211 | POWER(%1,2)
212 |
213 |
214 |
215 | POWER(%1, 2)
216 |
217 |
218 |
219 | TAN(%1)
220 |
221 |
222 |
223 | TRUNC(%1)
224 |
225 |
226 |
227 | ifNull(%1, 0)
228 |
229 |
230 |
231 | ifNull(%1, 0)
232 |
233 |
234 |
235 | reinterpretAsUInt8(subString(%1, 1, 1))
236 |
237 |
238 |
239 | bar(%1, %2, %3, %4)
240 |
241 |
242 |
243 |
244 |
245 |
246 | char(%1)
247 |
248 |
249 |
250 | char(%1)
251 |
252 |
253 |
254 | POSITION(%1, %2) > 0
255 |
256 |
257 |
258 |
259 | domain(%1)
260 |
261 |
262 |
263 | endsWith(trimRight(%1),%2)
264 |
265 |
266 |
267 |
268 | POSITION(%1, %2)
269 |
270 |
271 |
272 |
273 | POSITION(%1, %2, CAST(%3 AS Nullable(UInt8)))
274 |
275 |
276 |
277 |
278 |
279 | POSITION(%1, %2, %3)
280 |
281 |
282 |
283 |
284 |
285 | multiIf(countSubstrings(%1, %2) < CAST(%3 AS Nullable(UInt8)), 0, length(replaceRegexpAll(toString(arrayResize(splitByString(%2, %1), CAST(%3 AS Nullable(UInt8)))), '[\[\]\'\,]' , '')) + length(%2) * (CAST(%3 AS Nullable(UInt8)) - 1) + 1)
286 |
287 |
288 |
289 |
290 |
291 | multiIf(countSubstrings(%1, %2) < %3, 0, length(replaceRegexpAll(toString(arrayResize(splitByString(%2, %1), %3)), '[\[\]\'\,]' , '')) + length(%2) * (%3 - 1) + 1)
292 |
293 |
294 |
295 |
296 |
297 | formatReadableTimeDelta(%1)
298 |
299 |
300 |
301 | formatReadableTimeDelta(%1, %2)
302 |
303 |
304 |
305 |
306 | formatReadableQuantity(%1)
307 |
308 |
309 |
310 | JSONExtractRaw(%1,%2)
311 |
312 |
313 |
314 |
315 | getSetting(%1)
316 |
317 |
318 |
319 | hex(%1)
320 |
321 |
322 |
323 | netloc(%1)
324 |
325 |
326 |
327 | CASE WHEN ISNULL(%2) OR %2 < 1 THEN NULL
ELSE SUBSTRING(%1,1,CAST(TRUNC(%2) AS Nullable(INTEGER))) END
328 |
329 |
330 |
331 |
332 | CASE WHEN ISNULL(%2) OR %2 < 1 THEN NULL
ELSE SUBSTRING(%1,1,%2) END
333 |
334 |
335 |
336 |
337 | CHAR_LENGTH(%1)
338 |
339 |
340 |
341 | LOWER(%1)
342 |
343 |
344 |
345 | LTRIM(%1)
346 |
347 |
348 |
349 | if(or(%1 IS NULL, %2 IS NULL), NULL, GREATEST(%1, %2))
350 |
351 |
352 |
353 |
354 | MID(%1,IF(%2 < 1,1,%2))
355 |
356 |
357 |
358 |
359 | MID(%1,%2)
360 |
361 |
362 |
363 |
364 | MID(%1,IF(%2 < 1,1,%2),%3)
365 |
366 |
367 |
368 |
369 |
370 | MID(%1,IF(%2 < 1,1,%2),%3)
371 |
372 |
373 |
374 |
375 |
376 | if(or(%1 IS NULL, %2 IS NULL), NULL, LEAST(%1, %2))
377 |
378 |
379 |
380 |
381 | extractURLParameter(%1,%2)
382 |
383 |
384 |
385 |
386 | arrayStringConcat(arrayMap(x -> concat(x.1, x.2, x.3, x.4), flatten(arrayConcat(arrayZip(extractAllGroupsHorizontal(%1, '([^\p{L}\d]*)([\p{L}\d]{1})([\p{L}\d]*)([^\p{L}\d]*)')[1], arrayMap(x -> upperUTF8(x), extractAllGroupsHorizontal(%1, '([^\p{L}\d]*)([\p{L}\d]{1})([\p{L}\d]*)([^\p{L}\d]*)')[2]), arrayMap(x -> lowerUTF8(x), extractAllGroupsHorizontal(%1, '([^\p{L}\d]*)([\p{L}\d]{1})([\p{L}\d]*)([^\p{L}\d]*)')[3]), extractAllGroupsHorizontal(%1, '([^\p{L}\d]*)([\p{L}\d]{1})([\p{L}\d]*)([^\p{L}\d]*)')[4])))))
387 |
388 |
389 |
390 | replaceRegexpAll(toString(extract(%1,%2)), '[\[\]\']' , '')
391 |
392 |
393 |
394 |
395 | toString(arrayElement(arrayFlatten(extractAllGroupsVertical(%1,%2)),%3))
396 |
397 |
398 |
399 |
400 |
401 | match(%1, %2)
402 |
403 |
404 |
405 |
406 | replaceRegexpAll(%1, %2, %3)
407 |
408 |
409 |
410 |
411 |
412 | REPLACE(%1,%2,%3)
413 |
414 |
415 |
416 |
417 |
418 | CASE WHEN ISNULL(%2) OR CAST(TRUNC(%2) AS Nullable(INTEGER)) < 1 THEN NULL
ELSE SUBSTRING(%1,-CAST(TRUNC(%2) AS Nullable(INTEGER))) END
419 |
420 |
421 |
422 |
423 | CASE WHEN ISNULL(%2) OR %2 < 1 THEN NULL
ELSE SUBSTRING(%1,-%2) END
424 |
425 |
426 |
427 |
428 | RTRIM(%1)
429 |
430 |
431 |
432 | SHA256(%1)
433 |
434 |
435 |
436 | multiIf(isNull(%1) OR (%1 < 0), NULL, %1 == 0, '', repeat(' ', toUInt8(%1)))
437 |
438 |
439 |
440 | multiIf(isNull(%1) OR (%1 < 0), NULL, %1 == 0, '', repeat(' ', toUInt8(%1)))
441 |
442 |
443 |
444 | toString(arrayElement(splitByString('%2',ifNull(%1,'')),%3))
445 |
446 |
447 |
448 |
449 |
450 |
451 | startsWith(trimLeft(%1),%2)
452 |
453 |
454 |
455 |
456 | topLevelDomain(%1)
457 |
458 |
459 |
460 | TRIM(%1)
461 |
462 |
463 |
464 | unhex(%1)
465 |
466 |
467 |
468 | UPPER(%1)
469 |
470 |
471 |
472 | toDate(%1 - 25567)
473 |
474 |
475 |
476 | toDate(%1 - 25567)
477 |
478 |
479 |
480 | toDate(parseDateTimeBestEffortOrNull(%1))
481 |
482 |
483 |
484 | CAST(%1 AS Nullable(DATE))
485 |
486 |
487 |
488 | CAST(%1 AS Nullable(DATE))
489 |
490 |
491 |
492 | toDateTime((%1 - 25567) * 86400.0)
493 |
494 |
495 |
496 | toDateTime((%1 - 25567) * 86400.0)
497 |
498 |
499 |
500 | parseDateTimeBestEffortOrNull(%1)
501 |
502 |
503 |
504 | CAST(%1 AS Nullable(TIMESTAMP))
505 |
506 |
507 |
508 | CAST(%1 AS Nullable(TIMESTAMP))
509 |
510 |
511 |
512 | CAST(%1 AS Nullable(Float64))
513 |
514 |
515 |
516 | CAST(%1 AS Nullable(DOUBLE))
517 |
518 |
519 |
520 | CAST(%1 AS Nullable(DOUBLE))
521 |
522 |
523 |
524 | CAST(%1 AS Nullable(DOUBLE))
525 |
526 |
527 |
528 | (toUnixTimestamp(%1) / 86400.0 + 25567.0)
529 |
530 |
531 |
532 | (toUnixTimestamp(toDateTime(%1)) / 86400.0 + 25567.0)
533 |
534 |
535 |
536 | CAST(%1 AS Nullable(UInt8))
537 |
538 |
539 |
540 | CAST(TRUNC(%1) AS Nullable(INTEGER))
541 |
542 |
543 |
544 | CAST(%1 AS Nullable(INTEGER))
545 |
546 |
547 |
548 | CAST(CAST(%1 AS Nullable(Float)) AS Nullable(INTEGER))
549 |
550 |
551 |
552 | CAST(CAST(%1 AS Nullable(Date)) AS Nullable(INTEGER)) + 25567
553 |
554 |
555 |
556 | CAST(%1 AS Nullable(INTEGER)) + 25567
557 |
558 |
559 |
560 | addDays(addMonths(addYears(DATE '1970-01-01', CAST(%1 AS Nullable(INTEGER)) -1970), CAST(%2 AS Nullable(INTEGER)) -1), CAST(%3 AS Nullable(INTEGER)) -1)
561 |
562 |
563 |
564 |
565 |
566 | date_add(second, date_diff('second', date_trunc('day', CAST(%2 AS Nullable(DATETIME))), CAST(%2 AS Nullable(DATETIME))), CAST(%1 AS Nullable(DATE)))
567 |
568 |
569 |
570 |
571 | date_add(second, date_diff('second', date_trunc('day', CAST(%2 AS Nullable(DATETIME))), CAST(%2 AS Nullable(DATETIME))), CAST(%1 AS Nullable(DATE)))
572 |
573 |
574 |
575 |
576 | date_add(second, date_diff('second', date_trunc('day', CAST(%2 AS Nullable(DATETIME))), CAST(%2 AS Nullable(DATETIME))), CAST(%1 AS Nullable(DATE)))
577 |
578 |
579 |
580 |
581 | toTime(addSeconds(addMinutes(addHours(DATE '1970-01-02', CAST(%1 AS Nullable(INTEGER))), CAST(%2 AS Nullable(INTEGER))), CAST(%3 AS Nullable(INTEGER))))
582 |
583 |
584 |
585 |
586 |
587 | toFloat64(%1)
588 |
589 |
590 |
591 | toString(%1 > 0)
592 |
593 |
594 |
595 | CAST(toString(%1) AS Nullable(String))
596 |
597 |
598 |
599 | CAST(toString(%1) AS Nullable(String))
600 |
601 |
602 |
603 | CAST(%1 AS Nullable(String))
604 |
605 |
606 |
607 | CAST(toString(%1) AS Nullable(String))
608 |
609 |
610 |
611 | CAST(toString(%1) AS Nullable(String))
612 |
613 |
614 |
615 | ifNull(%1, %2)
616 |
617 |
618 |
619 |
620 | ifNull(%1, %2)
621 |
622 |
623 |
624 |
625 | ifNull(%1, %2)
626 |
627 |
628 |
629 |
630 | ifNull(%1, %2)
631 |
632 |
633 |
634 |
635 | ifNull(%1, %2)
636 |
637 |
638 |
639 |
640 | ifNull(%1, toDateTime(%2))
641 |
642 |
643 |
644 |
645 | ifNull(toDateTime(%1), %2)
646 |
647 |
648 |
649 |
650 | ifNull(%1, %2)
651 |
652 |
653 |
654 |
655 | ifNull(%1, %2)
656 |
657 |
658 |
659 |
660 | ((%1 AND %2) OR ((NOT %1) AND %3))
661 |
662 |
663 |
664 |
665 |
666 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE NULL END
667 |
668 |
669 |
670 |
671 |
672 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE %4 END
673 |
674 |
675 |
676 |
677 |
678 |
679 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE NULL END
680 |
681 |
682 |
683 |
684 |
685 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE %4 END
686 |
687 |
688 |
689 |
690 |
691 |
692 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE NULL END
693 |
694 |
695 |
696 |
697 |
698 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE %4 END
699 |
700 |
701 |
702 |
703 |
704 |
705 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE NULL END
706 |
707 |
708 |
709 |
710 |
711 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE %4 END
712 |
713 |
714 |
715 |
716 |
717 |
718 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE NULL END
719 |
720 |
721 |
722 |
723 |
724 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE %4 END
725 |
726 |
727 |
728 |
729 |
730 |
731 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE NULL END
732 |
733 |
734 |
735 |
736 |
737 | CASE WHEN %1 THEN %2 WHEN NOT %1 THEN %3 ELSE %4 END
738 |
739 |
740 |
741 |
742 |
743 |
744 | isNull(%1)
745 |
746 |
747 |
748 | isNull(%1)
749 |
750 |
751 |
752 | isNull(%1)
753 |
754 |
755 |
756 | isNull(%1)
757 |
758 |
759 |
760 | isNull(%1)
761 |
762 |
763 |
764 | avg(%1)
765 | %1
766 |
767 |
768 |
769 | avg(CAST(%1 AS Nullable( DOUBLE)))
770 | %1
771 |
772 |
773 |
774 | avgIf(%1,%2)
775 | NULL
776 |
777 |
778 |
779 |
780 | avgIf(CAST(%1 AS Nullable( DOUBLE)),%2)
781 | NULL
782 |
783 |
784 |
785 |
786 | CORR(%1, %2)
787 | CAST(NULL AS Nullable(DOUBLE))
788 |
789 |
790 |
791 |
792 | count(%1)
793 | isNotNull(%1)
794 |
795 |
796 |
797 | count(%1)
798 | isNotNull(%1)
799 |
800 |
801 |
802 | count(%1)
803 | isNotNull(%1)
804 |
805 |
806 |
807 | count(%1)
808 | isNotNull(%1)
809 |
810 |
811 |
812 | count(%1)
813 | isNotNull(%1)
814 |
815 |
816 |
817 | count(%1)
818 | isNotNull(%1)
819 |
820 |
821 |
822 | countIf(%1,%2)
823 | NULL
824 |
825 |
826 |
827 |
828 | countIf(%1,%2)
829 | NULL
830 |
831 |
832 |
833 |
834 | countIf(%1,%2)
835 | NULL
836 |
837 |
838 |
839 |
840 | countIf(%1,%2)
841 | NULL
842 |
843 |
844 |
845 |
846 | countIf(%1,%2)
847 | NULL
848 |
849 |
850 |
851 |
852 | countIf(%1,%2)
853 | NULL
854 |
855 |
856 |
857 |
858 | COUNT(DISTINCT %1)
859 | isNotNull(%1)
860 |
861 |
862 |
863 | COUNT(DISTINCT %1)
864 | isNotNull(%1)
865 |
866 |
867 |
868 | COUNT(DISTINCT %1)
869 | isNotNull(%1)
870 |
871 |
872 |
873 | COUNT(DISTINCT %1)
874 | isNotNull(%1)
875 |
876 |
877 |
878 | COUNT(DISTINCT %1)
879 | isNotNull(%1)
880 |
881 |
882 |
883 | COUNT(DISTINCT %1)
884 | isNotNull(%1)
885 |
886 |
887 |
888 | uniqExactMerge(%1)
889 | isNotNull(%1)
890 |
891 |
892 |
893 | uniq(%1)
894 | isNotNull(%1)
895 |
896 |
897 |
898 | uniq(%1)
899 | isNotNull(%1)
900 |
901 |
902 |
903 | uniq(%1)
904 | isNotNull(%1)
905 |
906 |
907 |
908 | uniq(%1)
909 | isNotNull(%1)
910 |
911 |
912 |
913 | uniq(%1)
914 | isNotNull(%1)
915 |
916 |
917 |
918 | uniq(%1)
919 | isNotNull(%1)
920 |
921 |
922 |
923 | uniqMerge(%1)
924 | isNotNull(%1)
925 |
926 |
927 |
928 | covarSamp(%1, %2)
929 | NULL
930 |
931 |
932 |
933 |
934 | covarPop(%1, %2)
935 | NULL
936 |
937 |
938 |
939 |
940 | replaceRegexpAll(toString(arraySort(groupUniqArray(%1))), '[\[\]\']' , '')
941 | %1
942 |
943 |
944 |
945 | groupBitOr(%1)
946 | %1
947 |
948 |
949 |
950 | max(%1)
951 | %1
952 |
953 |
954 |
955 | max(%1)
956 | %1
957 |
958 |
959 |
960 | max(%1)
961 | %1
962 |
963 |
964 |
965 | max(%1)
966 | %1
967 |
968 |
969 |
970 | max(%1)
971 | %1
972 |
973 |
974 |
975 | maxIf(%1,%2)
976 | NULL
977 |
978 |
979 |
980 |
981 | maxIf(%1,%2)
982 | NULL
983 |
984 |
985 |
986 |
987 | maxIf(%1,%2)
988 | NULL
989 |
990 |
991 |
992 |
993 | maxIf(%1,%2)
994 | NULL
995 |
996 |
997 |
998 |
999 | maxIf(%1,%2)
1000 | NULL
1001 |
1002 |
1003 |
1004 |
1005 | maxIf(%1,%2)
1006 | NULL
1007 |
1008 |
1009 |
1010 |
1011 | quantile(0.5)(%1)
1012 | %1
1013 |
1014 |
1015 |
1016 | quantile(0.5)(%1)
1017 | %1
1018 |
1019 |
1020 |
1021 | quantileExact(0.5)(%1)
1022 | %1
1023 |
1024 |
1025 |
1026 | quantileExact(0.5)(%1)
1027 | %1
1028 |
1029 |
1030 |
1031 | groupBitAnd(%1)
1032 | %1
1033 |
1034 |
1035 |
1036 | min(%1)
1037 | %1
1038 |
1039 |
1040 |
1041 | min(%1)
1042 | %1
1043 |
1044 |
1045 |
1046 | min(%1)
1047 | %1
1048 |
1049 |
1050 |
1051 | min(%1)
1052 | %1
1053 |
1054 |
1055 |
1056 | min(%1)
1057 | %1
1058 |
1059 |
1060 |
1061 | minIf(%1,%2)
1062 | NULL
1063 |
1064 |
1065 |
1066 |
1067 | minIf(%1,%2)
1068 | NULL
1069 |
1070 |
1071 |
1072 |
1073 | minIf(%1,%2)
1074 | NULL
1075 |
1076 |
1077 |
1078 |
1079 | minIf(%1,%2)
1080 | NULL
1081 |
1082 |
1083 |
1084 |
1085 | minIf(%1,%2)
1086 | NULL
1087 |
1088 |
1089 |
1090 |
1091 | minIf(%1,%2)
1092 | NULL
1093 |
1094 |
1095 |
1096 |
1097 | kurtSamp(%1)
1098 | %1
1099 |
1100 |
1101 |
1102 | kurtSamp(%1)
1103 | %1
1104 |
1105 |
1106 |
1107 | kurtPop(%1)
1108 | %1
1109 |
1110 |
1111 |
1112 | kurtPop(%1)
1113 | %1
1114 |
1115 |
1116 |
1117 | quantile(%2)(%1)
1118 | %1
1119 |
1120 |
1121 |
1122 |
1123 | quantile(%2)(%1)
1124 | %1
1125 |
1126 |
1127 |
1128 |
1129 | quantileExact(%2)(%1)
1130 | %1
1131 |
1132 |
1133 |
1134 |
1135 | quantileExact(%2)(%1)
1136 | %1
1137 |
1138 |
1139 |
1140 |
1141 | skewSamp(%1)
1142 | %1
1143 |
1144 |
1145 |
1146 | skewSamp(%1)
1147 | %1
1148 |
1149 |
1150 |
1151 | skewPop(%1)
1152 | %1
1153 |
1154 |
1155 |
1156 | skewPop(%1)
1157 | %1
1158 |
1159 |
1160 |
1161 | stddevSamp(%1)
1162 | %1
1163 |
1164 |
1165 |
1166 | stddevPop(%1)
1167 | (%1 * 0.0)
1168 |
1169 |
1170 |
1171 | sum(%1)
1172 | %1
1173 |
1174 |
1175 |
1176 | sum(%1)
1177 | %1
1178 |
1179 |
1180 |
1181 | sumIf(%1,%2)
1182 | NULL
1183 |
1184 |
1185 |
1186 |
1187 | sumIf(%1,%2)
1188 | NULL
1189 |
1190 |
1191 |
1192 |
1193 | toTypeName(any(%1))
1194 | %1
1195 |
1196 |
1197 |
1198 | toTypeName(any(%1))
1199 | %1
1200 |
1201 |
1202 |
1203 | toTypeName(any(%1))
1204 | %1
1205 |
1206 |
1207 |
1208 | toTypeName(any(%1))
1209 | %1
1210 |
1211 |
1212 |
1213 | toTypeName(any(%1))
1214 | %1
1215 |
1216 |
1217 |
1218 | toTypeName(any(%1))
1219 | %1
1220 |
1221 |
1222 |
1223 | varSamp(%1)
1224 | %1
1225 |
1226 |
1227 |
1228 | varPop(%1)
1229 | (%1 * 0.0)
1230 |
1231 |
1232 |
1233 | (NOT %1)
1234 |
1235 |
1236 |
1237 | xor(%1,%2)
1238 |
1239 |
1240 |
1241 |
1242 | xor(%1,%2)
1243 |
1244 |
1245 |
1246 |
1247 | (%1 <> %2)
1248 |
1249 |
1250 |
1251 |
1252 | xor(%1,%2)
1253 |
1254 |
1255 |
1256 |
1257 | (%1 <> %2)
1258 |
1259 |
1260 |
1261 |
1262 | (TIMESTAMP(%1) <> %2)
1263 |
1264 |
1265 |
1266 |
1267 | (%1 <> TIMESTAMP(%2))
1268 |
1269 |
1270 |
1271 |
1272 | (%1 <> %2)
1273 |
1274 |
1275 |
1276 |
1277 | (%1 <> %2)
1278 |
1279 |
1280 |
1281 |
1282 | (%1 <> %2)
1283 |
1284 |
1285 |
1286 |
1287 | (%1 <> %2)
1288 |
1289 |
1290 |
1291 |
1292 | moduloOrZero(%1, %2)
1293 |
1294 |
1295 |
1296 |
1297 | moduloOrZero(%1, %2)
1298 |
1299 |
1300 |
1301 |
1302 | (%1 AND %2)
1303 |
1304 |
1305 |
1306 |
1307 | (%1 * %2)
1308 |
1309 |
1310 |
1311 |
1312 | (%1 * %2)
1313 |
1314 |
1315 |
1316 |
1317 | (%1 * %2)
1318 |
1319 |
1320 |
1321 |
1322 | (%1 * %2)
1323 |
1324 |
1325 |
1326 |
1327 | (%1 + %2)
1328 |
1329 |
1330 |
1331 |
1332 | (%1 + %2)
1333 |
1334 |
1335 |
1336 |
1337 | concat(%1,%2)
1338 |
1339 |
1340 |
1341 |
1342 | (CAST(%1 AS Nullable(DATETIME)) + %2 * 86400.0)
1343 |
1344 |
1345 |
1346 |
1347 | CAST(date_add(day,%2,%1) AS Nullable(TIMESTAMP))
1348 |
1349 |
1350 |
1351 |
1352 | (toDateTime(%1) + %2 * 86400.0)
1353 |
1354 |
1355 |
1356 |
1357 | toDate(toDateTime(%1) + %2 * 86400.0)
1358 |
1359 |
1360 |
1361 |
1362 | (-%1)
1363 |
1364 |
1365 |
1366 | (%1 - %2)
1367 |
1368 |
1369 |
1370 |
1371 | (%1 - %2) / 86400.0
1372 |
1373 |
1374 |
1375 |
1376 | (%1 - toDateTime(%2)) / 86400.0
1377 |
1378 |
1379 |
1380 |
1381 | (toDateTime(%1) - %2) / 86400.0
1382 |
1383 |
1384 |
1385 |
1386 | (toDateTime(%1) - toDateTime(%2)) / 86400.0
1387 |
1388 |
1389 |
1390 |
1391 | (-%1)
1392 |
1393 |
1394 |
1395 | (%1 - %2)
1396 |
1397 |
1398 |
1399 |
1400 | (%1 - %2)
1401 |
1402 |
1403 |
1404 |
1405 | date_add(second, - %2 * 86400, %1)
1406 |
1407 |
1408 |
1409 |
1410 | date_add(second, - %2 * 86400, %1)
1411 |
1412 |
1413 |
1414 |
1415 | date_add(second, - %2 * 86400, %1)
1416 |
1417 |
1418 |
1419 |
1420 | toDate(date_add(second, - %2 * 86400, %1))
1421 |
1422 |
1423 |
1424 |
1425 | (toFloat64(%1) / nullIf(%2,0))
1426 |
1427 |
1428 |
1429 |
1430 | (%1 / nullIf(%2,0))
1431 |
1432 |
1433 |
1434 |
1435 | (%1 / nullIf(%2,0))
1436 |
1437 |
1438 |
1439 |
1440 | (%1 / nullIf(%2,0))
1441 |
1442 |
1443 |
1444 |
1445 | (%1 < %2)
1446 |
1447 |
1448 |
1449 |
1450 | (%1 < %2)
1451 |
1452 |
1453 |
1454 |
1455 | (TIMESTAMP(%1) < %2)
1456 |
1457 |
1458 |
1459 |
1460 | (%1 < TIMESTAMP(%2))
1461 |
1462 |
1463 |
1464 |
1465 | (%1 < %2)
1466 |
1467 |
1468 |
1469 |
1470 | (%1 < CAST(%2 AS Nullable(TIMESTAMP)))
1471 |
1472 |
1473 |
1474 |
1475 | (CAST(%1 AS Nullable(TIMESTAMP)) < %2)
1476 |
1477 |
1478 |
1479 |
1480 | (%1 < %2)
1481 |
1482 |
1483 |
1484 |
1485 | (%1 <= %2)
1486 |
1487 |
1488 |
1489 |
1490 | (%1 <= %2)
1491 |
1492 |
1493 |
1494 |
1495 | (TIMESTAMP(%1) <= %2)
1496 |
1497 |
1498 |
1499 |
1500 | (%1 <= TIMESTAMP(%2))
1501 |
1502 |
1503 |
1504 |
1505 | (%1 <= %2)
1506 |
1507 |
1508 |
1509 |
1510 | (%1 <= CAST(%2 AS Nullable(TIMESTAMP)))
1511 |
1512 |
1513 |
1514 |
1515 | (CAST(%1 AS Nullable(TIMESTAMP)) <= %2)
1516 |
1517 |
1518 |
1519 |
1520 | (%1 <= %2)
1521 |
1522 |
1523 |
1524 |
1525 | (%1 AND %2 OR NOT %1 AND NOT %2)
1526 |
1527 |
1528 |
1529 |
1530 | (%1 AND %2 <> 0 OR NOT %1 AND %2 = 0)
1531 |
1532 |
1533 |
1534 |
1535 | (%1 = %2)
1536 |
1537 |
1538 |
1539 |
1540 | (%1 <> 0 AND %2 OR %1 = 0 AND NOT %2)
1541 |
1542 |
1543 |
1544 |
1545 | (%1 = %2)
1546 |
1547 |
1548 |
1549 |
1550 | (TIMESTAMP(%1) = %2)
1551 |
1552 |
1553 |
1554 |
1555 | (%1 = TIMESTAMP(%2))
1556 |
1557 |
1558 |
1559 |
1560 | (%1 = %2)
1561 |
1562 |
1563 |
1564 |
1565 | (%1 = toDateTime(%2))
1566 |
1567 |
1568 |
1569 |
1570 | (CAST(%1 AS Nullable(TIMESTAMP)) = %2)
1571 |
1572 |
1573 |
1574 |
1575 | (%1 = %2)
1576 |
1577 |
1578 |
1579 |
1580 | (%1 > %2)
1581 |
1582 |
1583 |
1584 |
1585 | (%1 > %2)
1586 |
1587 |
1588 |
1589 |
1590 | (TIMESTAMP(%1) > %2)
1591 |
1592 |
1593 |
1594 |
1595 | (%1 > TIMESTAMP(%2))
1596 |
1597 |
1598 |
1599 |
1600 | (%1 > %2)
1601 |
1602 |
1603 |
1604 |
1605 | (%1 > CAST(%2 AS Nullable(TIMESTAMP)))
1606 |
1607 |
1608 |
1609 |
1610 | (CAST(%1 AS Nullable(TIMESTAMP)) > %2)
1611 |
1612 |
1613 |
1614 |
1615 | (%1 > %2)
1616 |
1617 |
1618 |
1619 |
1620 | (%1 >= %2)
1621 |
1622 |
1623 |
1624 |
1625 | (%1 >= %2)
1626 |
1627 |
1628 |
1629 |
1630 | (TIMESTAMP(%1) >= %2)
1631 |
1632 |
1633 |
1634 |
1635 | (%1 >= TIMESTAMP(%2))
1636 |
1637 |
1638 |
1639 |
1640 | (%1 >= %2)
1641 |
1642 |
1643 |
1644 |
1645 | (%1 >= CAST(%2 AS Nullable(TIMESTAMP)))
1646 |
1647 |
1648 |
1649 |
1650 | (toDateTime(%1) >= %2)
1651 |
1652 |
1653 |
1654 |
1655 | (%1 >= %2)
1656 |
1657 |
1658 |
1659 |
1660 | (CASE WHEN %1 < 0 AND TRUNC(%2) <> %2 THEN NULL ELSE POWER(%1,%2) END)
1661 |
1662 |
1663 |
1664 |
1665 | (CASE WHEN %1 < 0 AND FLOOR(%2) <> %2 THEN NULL ELSE POWER(%1,%2) END)
1666 |
1667 |
1668 |
1669 |
1670 | POWER(CAST(%1 as float),%2)
1671 |
1672 |
1673 |
1674 |
1675 | (%1 OR %2)
1676 |
1677 |
1678 |
1679 |
1680 | toStartOfInterval(%3, INTERVAL %2 %1)
1681 |
1682 |
1683 |
1684 |
1685 |
1686 | toStartOfInterval(%3, INTERVAL %2 %1)
1687 |
1688 |
1689 |
1690 |
1691 |
1692 | toDayOfMonth(%1)
1693 |
1694 |
1695 |
1696 | toDayOfMonth(%1)
1697 |
1698 |
1699 |
1700 | (CAST(%1 AS Nullable(DATE)) IS NOT NULL)
1701 |
1702 |
1703 |
1704 | if(isNull(%1), NULL, least(ceiling(toISOWeek(%1) / 13), 4))
1705 |
1706 |
1707 |
1708 | if(isNull(%1), NULL, least(ceiling(toISOWeek(%1) / 13), 4))
1709 |
1710 |
1711 |
1712 | if(isNull(%1), NULL, toISOWeek(%1))
1713 |
1714 |
1715 |
1716 | if(isNull(%1), NULL, toISOWeek(%1))
1717 |
1718 |
1719 |
1720 | if(isNull(%1), NULL, toDayOfWeek(%1))
1721 |
1722 |
1723 |
1724 | if(isNull(%1), NULL, toDayOfWeek(%1))
1725 |
1726 |
1727 |
1728 | if(isNull(%1), NULL, toISOYear(%1))
1729 |
1730 |
1731 |
1732 | if(isNull(%1), NULL, toISOYear(%1))
1733 |
1734 |
1735 |
1736 | if(or(%1 IS NULL, %2 IS NULL), NULL, GREATEST(%1, %2))
1737 |
1738 |
1739 |
1740 |
1741 | if(or(%1 IS NULL, %2 IS NULL), NULL, GREATEST(%1, %2))
1742 |
1743 |
1744 |
1745 |
1746 | if(or(%1 IS NULL, %2 IS NULL), NULL, LEAST(%1, %2))
1747 |
1748 |
1749 |
1750 |
1751 | if(or(%1 IS NULL, %2 IS NULL), NULL, LEAST(%1, %2))
1752 |
1753 |
1754 |
1755 |
1756 | MONTH(%1)
1757 |
1758 |
1759 |
1760 | MONTH(%1)
1761 |
1762 |
1763 |
1764 | NOW()
1765 |
1766 |
1767 | toUnixTimestamp64Micro(CAST(%1, 'Nullable(DateTime64(6))'))
1768 |
1769 |
1770 |
1771 | today()
1772 |
1773 |
1774 | toDateTime(fromUnixTimestamp64Micro(%1))
1775 |
1776 |
1777 |
1778 | toYear(%1)
1779 |
1780 |
1781 |
1782 | toYear(%1)
1783 |
1784 |
1785 |
1791 |
1792 | CAST(date_add(%1, %2, %3) AS Nullable(DateTime))
1793 |
1794 |
1795 |
1796 |
1797 |
1798 | CAST(date_add(%1, %2, %3) AS Nullable(DateTime))
1799 | CAST(multiIf(isNull(%2) or isNull(%3), NULL, %2 == 0, %3, date_add(WEEK, sign(%2) * arraySum(arraySlice(arrayFlatten(arrayMap((y) -> toISOWeek(toStartOfISOYear(date_add(YEAR, 1, toDate(concat(toString(y), '-01-01')) + 7)) - 1), arraySort((ys) -> sign(%2) * ys, range(toUInt16OrDefault(least(toISOYear(toDateTimeOrDefault(%3)), toISOYear(toDateTimeOrDefault(%3)) + toInt16OrDefault(%2) + sign(toInt16OrDefault(%2)))), toUInt16OrDefault(greatest(toISOYear(toDateTimeOrDefault(%3)), toISOYear(toDateTimeOrDefault(%3)) + toInt16OrDefault(%2) + sign(toInt16OrDefault(%2)))), 1)))), greaterOrEquals(%2,0) + toInt16((1-sign(toInt16OrDefault(%2)))/2), abs(toInt16OrDefault(%2)))), %3)) AS Nullable(DateTime))
1800 | CAST(multiIf(isNull(%2) or isNull(%3), NULL, %2 == 0, if(toISOWeek(toStartOfISOYear(date_add(YEAR, 1, toDate(concat(toString(toISOYear(%3)),'-01-01')) + 7)) - 1) = 53 and toISOWeek(%3) > 39, date_add(WEEK, 1, %3), %3), date_add(WEEK, -13 + sign(%2) * arraySum(arraySlice(arrayFlatten(arrayMap((q) -> arraySort((s) -> sign(toInt16OrDefault(%2))*s, [13,13,13, q - 39]), arrayMap((y) -> toISOWeek(toStartOfISOYear(date_add(YEAR, 1, toDate(concat(toString(y), '-01-01')) + 7)) - 1), arraySort((ys) -> sign(%2) * ys, range(toUInt16OrDefault(least(toISOYear(toDateTimeOrDefault(%3)), toISOYear(toDateTimeOrDefault(%3)) + toInt16OrDefault(%2) + sign(toInt16OrDefault(%2)))), toUInt16OrDefault(greatest(toISOYear(toDateTimeOrDefault(%3)), toISOYear(toDateTimeOrDefault(%3)) + toInt16OrDefault(%2) + sign(toInt16OrDefault(%2)))) + 1, 1))))), 3*(1 - sign(toInt16OrDefault(%2))) - (-sign(toInt16OrDefault(%2))) * toInt8(least(ceiling(toISOWeek(toDateTimeOrDefault(%3)) / 13), 4)), abs(toInt16OrDefault(%2)) + sign(toInt16OrDefault(%2)))), %3)) AS Nullable(DateTime))
1801 | CAST(if(isNull(%2) or isNull(%3), NULL, date_add(WEEK, %2, %3)) AS Nullable(DateTime))
1802 | CAST(if(isNull(%2) or isNull(%3), NULL, date_add(DAY, %2, %3)) AS Nullable(DateTime))
1803 |
1804 |
1805 |
1806 |
1807 |
1808 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1809 | CAST(toISOYear(%3) - toISOYear(%2) AS Nullable(INTEGER))
1810 | CAST(if(isNull(%2) or isNull(%3), NULL, sign(%3-%2) * length(arrayFilter((i) -> lessOrEquals(i, date_diff(WEEK, date_add(DAY, least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)*13*7, toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), arrayCumSum(arraySlice(arrayFlatten(arrayMap((q) -> arraySort((s) -> sign(%3-%2)*s, [13,13,13, q - 39]), arrayMap((y) -> toISOWeek(toStartOfISOYear(date_add(YEAR, 1, toDate(concat(toString(y), '-01-01')) + 7)) - 1), arraySort((s) -> sign(%3-%2)*s, range(toUInt16(toISOYear(toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))),toISOYear(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))+1, 1))))), if(greaterOrEquals(%3,%2), 1+toInt16(least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)), 5-toInt16(least(floor((toISOWeek(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))/13),4)))))))) AS Nullable(INTEGER))
1811 | CAST(dateDiff('%1', toStartOfWeek(%2, 8), toStartOfWeek(%3, 8)) AS Nullable(INTEGER))
1812 | CAST(sign(date_diff(DAY, %2, %3)) * date_diff(WEEK, toStartOfWeek(least(%2, %3), 3), greatest(%2, %3)) AS Nullable(INTEGER))
1813 | CAST(date_diff(DAY, %2, %3) AS Nullable(INTEGER))
1814 |
1815 |
1816 |
1817 |
1818 |
1819 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1820 | CAST(toISOYear(%3) - toISOYear(%2) AS Nullable(INTEGER))
1821 | CAST(if(isNull(%2) or isNull(%3), NULL, sign(%3-%2) * length(arrayFilter((i) -> lessOrEquals(i, date_diff(WEEK, date_add(DAY, least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)*13*7, toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), arrayCumSum(arraySlice(arrayFlatten(arrayMap((q) -> arraySort((s) -> sign(%3-%2)*s, [13,13,13, q - 39]), arrayMap((y) -> toISOWeek(toStartOfISOYear(date_add(YEAR, 1, toDate(concat(toString(y), '-01-01')) + 7)) - 1), arraySort((s) -> sign(%3-%2)*s, range(toUInt16(toISOYear(toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))),toISOYear(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))+1, 1))))), if(greaterOrEquals(%3,%2), 1+toInt16(least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)), 5-toInt16(least(floor((toISOWeek(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))/13),4)))))))) AS Nullable(INTEGER))
1822 | CAST(dateDiff('%1', toStartOfWeek(%2, 8), toStartOfWeek(%3, 8)) AS Nullable(INTEGER))
1823 | CAST(sign(date_diff(DAY, %2, %3)) * date_diff(WEEK, toStartOfWeek(least(%2, %3), 3), greatest(%2, %3)) AS Nullable(INTEGER))
1824 | CAST(date_diff(DAY, %2, %3) AS Nullable(INTEGER))
1825 |
1826 |
1827 |
1828 |
1829 |
1830 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1831 | CAST(toISOYear(%3) - toISOYear(%2) AS Nullable(INTEGER))
1832 | CAST(if(isNull(%2) or isNull(%3), NULL, sign(%3-%2) * length(arrayFilter((i) -> lessOrEquals(i, date_diff(WEEK, date_add(DAY, least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)*13*7, toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), arrayCumSum(arraySlice(arrayFlatten(arrayMap((q) -> arraySort((s) -> sign(%3-%2)*s, [13,13,13, q - 39]), arrayMap((y) -> toISOWeek(toStartOfISOYear(date_add(YEAR, 1, toDate(concat(toString(y), '-01-01')) + 7)) - 1), arraySort((s) -> sign(%3-%2)*s, range(toUInt16(toISOYear(toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))),toISOYear(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))+1, 1))))), if(greaterOrEquals(%3,%2), 1+toInt16(least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)), 5-toInt16(least(floor((toISOWeek(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))/13),4)))))))) AS Nullable(INTEGER))
1833 | CAST(dateDiff('%1', toStartOfWeek(%2, 8), toStartOfWeek(%3, 8)) AS Nullable(INTEGER))
1834 | CAST(sign(date_diff(DAY, %2, %3)) * date_diff(WEEK, toStartOfWeek(least(%2, %3), 3), greatest(%2, %3)) AS Nullable(INTEGER))
1835 | CAST(date_diff(DAY, %2, %3) AS Nullable(INTEGER))
1836 |
1837 |
1838 |
1839 |
1840 |
1841 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1842 | CAST(toISOYear(%3) - toISOYear(%2) AS Nullable(INTEGER))
1843 | CAST(if(isNull(%2) or isNull(%3), NULL, sign(%3-%2) * length(arrayFilter((i) -> lessOrEquals(i, date_diff(WEEK, date_add(DAY, least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)*13*7, toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))), arrayCumSum(arraySlice(arrayFlatten(arrayMap((q) -> arraySort((s) -> sign(%3-%2)*s, [13,13,13, q - 39]), arrayMap((y) -> toISOWeek(toStartOfISOYear(date_add(YEAR, 1, toDate(concat(toString(y), '-01-01')) + 7)) - 1), arraySort((s) -> sign(%3-%2)*s, range(toUInt16(toISOYear(toStartOfISOYear(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))),toISOYear(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))+1, 1))))), if(greaterOrEquals(%3,%2), 1+toInt16(least(floor((toISOWeek(least(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3)))-1)/13),3)), 5-toInt16(least(floor((toISOWeek(greatest(toDateTimeOrDefault(%2), toDateTimeOrDefault(%3))))/13),4)))))))) AS Nullable(INTEGER))
1844 | CAST(dateDiff('%1', toStartOfWeek(%2, 8), toStartOfWeek(%3, 8)) AS Nullable(INTEGER))
1845 | CAST(sign(date_diff(DAY, %2, %3)) * date_diff(WEEK, toStartOfWeek(least(%2, %3), 3), greatest(%2, %3)) AS Nullable(INTEGER))
1846 | CAST(date_diff(DAY, %2, %3) AS Nullable(INTEGER))
1847 |
1848 |
1849 |
1850 |
1851 |
1852 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1853 | CAST(dateDiff('%1', toStartOfWeek(%2, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END)), toStartOfWeek(%3, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END))) AS Nullable(INTEGER))
1854 |
1855 |
1856 |
1857 |
1858 |
1859 |
1860 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1861 | CAST(dateDiff('%1', toStartOfWeek(%2, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END)), toStartOfWeek(%3, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END))) AS Nullable(INTEGER))
1862 |
1863 |
1864 |
1865 |
1866 |
1867 |
1868 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1869 | CAST(dateDiff('%1', toStartOfWeek(%2, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END)), toStartOfWeek(%3, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END))) AS Nullable(INTEGER))
1870 |
1871 |
1872 |
1873 |
1874 |
1875 |
1876 | CAST(dateDiff('%1', %2, %3) AS Nullable(INTEGER))
1877 | CAST(dateDiff('%1', toStartOfWeek(%2, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END)), toStartOfWeek(%3, (CASE WHEN %4=0 THEN 8 WHEN %4=1 THEN 9 ELSE 8 END))) AS Nullable(INTEGER))
1878 |
1879 |
1880 |
1881 |
1882 |
1883 |
1884 | CAST(dateName('year',%2) AS Nullable(String))
1885 | CAST(toISOYear(%2) AS Nullable(String))
1886 | CAST(dateName('quarter',%2) AS Nullable(String))
1887 | CAST(least(ceiling(toISOWeek(%2)/13),4) AS Nullable(String))
1888 | CAST(dateName('month',%2) AS Nullable(String))
1889 | CAST(dateName('dayofyear',%2) AS Nullable(String))
1890 | CAST(dateName('day',%2) AS Nullable(String))
1891 | CAST(dateName('weekday',%2) AS Nullable(String))
1892 | CAST(toDayOfWeek(%2) AS Nullable(String))
1893 | CAST(toWeek(%2, 8) AS Nullable(String))
1894 | CAST(toISOWeek(%2) AS Nullable(String))
1895 | CAST(dateName('hour',%2) AS Nullable(String))
1896 | CAST(dateName('minute',%2) AS Nullable(String))
1897 | CAST(dateName('second',%2) AS Nullable(String))
1898 |
1899 |
1900 |
1901 |
1902 | CAST(dateName('year',%2) AS Nullable(String))
1903 | CAST(toISOYear(%2) AS Nullable(String))
1904 | CAST(dateName('quarter',%2) AS Nullable(String))
1905 | CAST(if(isNull(%2), NULL, least(ceiling(toISOWeek(%2)/13),4)) AS Nullable(String))
1906 | CAST(dateName('month',%2) AS Nullable(String))
1907 | CAST(dateName('dayofyear',%2) AS Nullable(String))
1908 | CAST(dateName('day',%2) AS Nullable(String))
1909 | CAST(dateName('weekday',%2) AS Nullable(String))
1910 | CAST(toDayOfWeek(%2) AS Nullable(String))
1911 | CAST(toWeek(%2, 8) AS Nullable(String))
1912 | CAST(leftPad(toString(toISOWeek(%2)), 2, '0') AS Nullable(String))
1913 | CAST(dateName('hour',%2) AS Nullable(String))
1914 | CAST(dateName('minute',%2) AS Nullable(String))
1915 | CAST(dateName('second',%2) AS Nullable(String))
1916 |
1917 |
1918 |
1919 |
1920 | CAST(dateName('year',%2) AS Nullable(String))
1921 | CAST(dateName('quarter',%2) AS Nullable(String))
1922 | CAST(dateName('month',%2) AS Nullable(String))
1923 | CAST(dateName('dayofyear',%2) AS Nullable(String))
1924 | CAST(dateName('day',%2) AS Nullable(String))
1925 | CAST(dateName('weekday',%2) AS Nullable(String))
1926 | CAST(toWeek(%2, (CASE WHEN %3=0 THEN 8 WHEN %3=1 THEN 9 ELSE 8 END)) AS Nullable(String))
1927 | CAST(dateName('hour',%2) AS Nullable(String))
1928 | CAST(dateName('minute',%2) AS Nullable(String))
1929 | CAST(dateName('second',%2) AS Nullable(String))
1930 |
1931 |
1932 |
1933 |
1934 |
1935 | CAST(dateName('year',%2) AS Nullable(String))
1936 | CAST(dateName('quarter',%2) AS Nullable(String))
1937 | CAST(dateName('month',%2) AS Nullable(String))
1938 | CAST(dateName('dayofyear',%2) AS Nullable(String))
1939 | CAST(dateName('day',%2) AS Nullable(String))
1940 | CAST(dateName('weekday',%2) AS Nullable(String))
1941 | CAST(toWeek(%2, (CASE WHEN %3=0 THEN 8 WHEN %3=1 THEN 9 ELSE 8 END)) AS Nullable(String))
1942 | CAST(dateName('hour',%2) AS Nullable(String))
1943 | CAST(dateName('minute',%2) AS Nullable(String))
1944 | CAST(dateName('second',%2) AS Nullable(String))
1945 |
1946 |
1947 |
1948 |
1949 |
1950 | parseDateTimeBestEffortOrNull(%2)
1951 |
1952 |
1953 |
1954 |
1955 | toYear(%2)
1956 | if(isNull(%2), NULL, toISOYear(%2))
1957 | toQuarter(%2)
1958 | if(isNull(%2), NULL, least(ceiling(toISOWeek(%2) / 13), 4))
1959 | toMonth(%2)
1960 | toDayOfYear(%2)
1961 | toDayOfMonth(%2)
1962 | toDayOfWeek(%2) mod 7 + 1
1963 | if(isNull(%2), NULL, toDayOfWeek(%2))
1964 | toWeek(%2, 8)
1965 | if(isNull(%2), NULL, toISOWeek(%2))
1966 | toHour(%2)
1967 | toMinute(%2)
1968 | toSecond(%2)
1969 |
1970 |
1971 |
1972 |
1973 | toYear(%2)
1974 | if(isNull(%2), NULL, toISOYear(%2))
1975 | toQuarter(%2)
1976 | if(isNull(%2), NULL, least(ceiling(toISOWeek(%2) / 13), 4))
1977 | toMonth(%2)
1978 | toDayOfYear(%2)
1979 | toDayOfMonth(%2)
1980 | toDayOfWeek(%2) mod 7 + 1
1981 | if(isNull(%2), NULL, toDayOfWeek(%2))
1982 | toWeek(%2, 8)
1983 | toISOWeek(%2)
1984 | toHour(%2)
1985 | toMinute(%2)
1986 | toSecond(%2)
1987 |
1988 |
1989 |
1990 |
1991 | toYear(%2)
1992 | toQuarter(%2)
1993 | toMonth(%2)
1994 | toDayOfYear(%2)
1995 | toDayOfMonth(%2)
1996 | toDayOfWeek(%2) mod 7 + 1
1997 | toWeek(%2, (CASE WHEN %3=0 THEN 8 WHEN %3=1 THEN 9 ELSE 8 END))
1998 | toHour(%2)
1999 | toMinute(%2)
2000 | toSecond(%2)
2001 |
2002 |
2003 |
2004 |
2005 |
2006 | toYear(%2)
2007 | toQuarter(%2)
2008 | toMonth(%2)
2009 | toDayOfYear(%2)
2010 | toDayOfMonth(%2)
2011 | toDayOfWeek(%2) mod 7 + 1
2012 | toWeek(%2, (CASE WHEN %3=0 THEN 8 WHEN %3=1 THEN 9 ELSE 8 END))
2013 | toHour(%2)
2014 | toMinute(%2)
2015 | toSecond(%2)
2016 |
2017 |
2018 |
2019 |
2020 |
2021 | toStartOfInterval(%2, INTERVAL 1 %1)
2022 | if(isNull(%2), NULL, toStartOfISOYear(%2))
2023 | if(isNull(%2), NULL, date_add(DAY, least(floor((toISOWeek(%2) - 1) / 13), 3) * 13 * 7, toStartOfISOYear(%2)))
2024 | toStartOfWeek(%2, 8)
2025 | if(isNull(%2), NULL, toStartOfWeek(%2, 3))
2026 | if(isNull(%2), NULL, toStartOfDay(%2))
2027 |
2028 |
2029 |
2030 |
2031 | toStartOfInterval(%2, INTERVAL 1 %1)
2032 | if(isNull(%2), NULL, toStartOfISOYear(%2))
2033 | if(isNull(%2), NULL, date_add(DAY, least(floor((toISOWeek(%2) - 1) / 13), 3) * 13 * 7, toStartOfISOYear(%2)))
2034 | toStartOfWeek(%2, 8)
2035 | if(isNull(%2), NULL, toStartOfWeek(%2, 3))
2036 | if(isNull(%2), NULL, toStartOfDay(%2))
2037 |
2038 |
2039 |
2040 |
2041 | toStartOfInterval(%2, INTERVAL 1 %1)
2042 | toStartOfWeek(%2, (CASE WHEN %3=0 THEN 8 WHEN %3=1 THEN 9 ELSE 8 END))
2043 |
2044 |
2045 |
2046 |
2047 |
2048 | toStartOfInterval(%2, INTERVAL 1 %1)
2049 | toStartOfWeek(%2, (CASE WHEN %3=0 THEN 8 WHEN %3=1 THEN 9 ELSE 8 END))
2050 |
2051 |
2052 |
2053 |
2054 |
2055 |
2059 |
2060 |
2061 |
2062 |
2063 |
2064 |
2065 |
2066 |
2067 |
2068 |
2069 |
2070 |
2071 |
2072 |
2073 |
2074 |
2075 |
2076 |
2077 |
2078 |
2079 |
2080 |
2086 |
2087 |
2088 |
2089 |
2090 |
2091 |
2092 |
2093 |
2094 |
2095 |
2096 |
2097 |
2098 |
2099 |
2100 |
2101 |
2102 |
2103 |
2104 |
2105 |
2106 |
2107 |
2108 |
2109 |
2110 |
2111 |
2112 |
2113 |
2114 |
2115 |
2116 |
2121 |
2122 |
2133 |
2134 |
2135 |
2136 |
2137 |
2138 |
2139 |
2140 |
2141 |
2142 |
2143 |
2144 |
2145 |
2146 |
2147 |
2148 |
2149 |
2150 |
2151 |
2152 |
2153 |
2154 |
2155 |
2156 |
2157 |
2158 |
2159 |
2160 |
2161 |
2162 |
2163 |
2164 |
2165 |
2166 |
2167 |
2168 |
2169 |
2170 |
2171 |
2172 |
2173 |
2174 |
2175 |
2176 |
2177 |
2178 |
2179 |
2180 |
2181 |
2182 |
2183 |
2184 |
2185 |
2186 |
2187 |
2192 |
2193 |
2194 |
2202 |
2203 |
2208 |
2209 |
2213 |
2214 |
2215 |
2216 |
2217 |
2218 |
2219 |
2220 |
2221 |
2222 |
2223 |
2224 |
2225 |
2226 |
2227 |
2232 |
2233 |
2234 |
2235 |
2236 |
--------------------------------------------------------------------------------
/clickhouse_jdbc/manifest.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/signing_utility/pkcs11properties.cfg:
--------------------------------------------------------------------------------
1 | name=signingmanager
2 | library=/tmp/smpkcs11.so
3 | slotListIndex=0
4 |
--------------------------------------------------------------------------------
/signing_utility/smpkcs11.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ClickHouse/clickhouse-tableau-connector-jdbc/59e5e503492491329fee8f692fdb1fd4b2c3d332/signing_utility/smpkcs11.so
--------------------------------------------------------------------------------