Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
591 commits
Select commit Hold shift + click to select a range
af2ed2b
Kusto-phase3: fix mv-expand token index issue
kashwy Feb 13, 2023
4ad852b
bug_fix_1490
SadiHassan Feb 2, 2023
a592733
Handle multi-word needles with has operators
ltrk2 Feb 7, 2023
a41966c
Update release notes
ltrk2 Feb 14, 2023
449162e
Fixing empty functions
mcmajam Feb 16, 2023
35fc0e9
Adding math functions
mcmajam Feb 16, 2023
d227b2b
use .size()
mcmajam Feb 16, 2023
e93edf9
fix summarize_exception_bug_2113
SadiHassan Jan 20, 2023
bb4edff
bug_fix_1413
SadiHassan Feb 6, 2023
9f09169
fixed style error
SadiHassan Feb 6, 2023
fa6b7f0
rebased and func test added
SadiHassan Feb 16, 2023
0884586
Support multi-token needles
ltrk2 Feb 21, 2023
a009c39
Update unit tests
ltrk2 Feb 22, 2023
785f70f
Fix style issues
ltrk2 Feb 22, 2023
549aeda
Fix a linker error
ltrk2 Feb 22, 2023
48303ce
bug_fix_2159
SadiHassan Feb 12, 2023
f7e5666
rebased and code updated
SadiHassan Feb 16, 2023
5a6e54e
rebase and address review comments
SadiHassan Feb 23, 2023
6950443
Attempt to supress a pylint finding
ltrk2 Feb 23, 2023
9af4fe8
variance related functions --- 2252
SadiHassan Feb 24, 2023
039461f
Addressed review comments
SadiHassan Feb 24, 2023
b9294d3
Kusto-phase3 : fixed some sub-query issues.
kashwy Feb 27, 2023
83771e3
Kusto-phase3: fixed style issue, count bugs
kashwy Feb 27, 2023
b4c8826
Kusto-phase3 : fix typo in sub-query
kashwy Feb 27, 2023
ffa6cdc
Kusto-phase3: add KQL project-away operator
kashwy Feb 22, 2023
13a3769
Kusto-phase3 : Add test for projectaway
kashwy Feb 24, 2023
73a0dcb
Kusto-phase3: update release note
kashwy Feb 24, 2023
445e99f
Kusto-phase3 : updated function to follow the style
kashwy Feb 27, 2023
2938c97
Fix linker error for good
ltrk2 Feb 23, 2023
b421ed8
lookup() function
SadiHassan Feb 27, 2023
6dedfc4
removed unused code
SadiHassan Feb 27, 2023
03c77c6
Addressed review comments
SadiHassan Feb 27, 2023
66392ec
fix style issue
SadiHassan Feb 27, 2023
a439cdd
Bring everything in line with v23.2
ltrk2 Feb 28, 2023
290c735
implementation of has_ipv4, has_any_ipv4, has_ipv4_prefix, and has_an…
bemitc Feb 8, 2023
a49b632
address trailing whitespace and ErrorCodes errors
bemitc Feb 8, 2023
2162a94
add one additional missing ErrorCode
bemitc Feb 8, 2023
f319ad5
space after if and for
bemitc Feb 8, 2023
5f34249
eliminate camelcase in variable names
bemitc Feb 8, 2023
cd159be
use direct mapping for non any functions and mop up some stray camelc…
bemitc Feb 8, 2023
22b82d4
directMap remaining functions instead of a wrapper.
bemitc Feb 9, 2023
e75a17a
make args_list const
bemitc Feb 9, 2023
0b78f3e
handle columns with multiple rows correctly
bemitc Feb 13, 2023
577293b
use input_rows_count instead of calculating maximum size across argum…
bemitc Feb 13, 2023
3efc2c5
fix style
bemitc Feb 13, 2023
377a5bf
put lambda expression on a single line
bemitc Feb 13, 2023
c4192c6
use std::ranges::all_of instead of a for loop
bemitc Feb 13, 2023
3825964
clean up functional tests and add unit tests
bemitc Feb 15, 2023
fa72315
size_t to const auto
bemitc Feb 17, 2023
396ea7a
change some uses of std::string to auto
bemitc Feb 17, 2023
4b19676
row count is the same across all arguments, so simplify the argument …
bemitc Feb 17, 2023
4e723d4
const a lambda variable and update functional test and baseline
bemitc Feb 23, 2023
0e9506a
Update src/Functions/Kusto/kqlHasAnyIpv4.cpp
bemitc Feb 23, 2023
2042d88
resolution of several minor code review comments
bemitc Feb 27, 2023
4f6a6ed
share argument verification across kqlHasAnyIpv4.cpp and kqlHasAnyIpv…
bemitc Feb 27, 2023
48d1502
convert one remaining post increment to pre increment
bemitc Feb 27, 2023
38b88d2
split executeImpl up to make it easier to understand
bemitc Feb 27, 2023
8695f23
improve heuristic for ip prefixes and avoid a temp std::string creati…
bemitc Feb 28, 2023
2e2ffce
add updated heuristic to the array case as well
bemitc Feb 28, 2023
2e4dd5f
update ip prefix heuristic
bemitc Feb 28, 2023
25fdb64
add #pragma once
bemitc Mar 1, 2023
bb1e8f6
fix typo
bemitc Mar 1, 2023
eceb9da
format kqlHasAnyIp.h and kqlHasAnyIpv4.cpp
bemitc Mar 2, 2023
836499a
add release notes
bemitc Mar 2, 2023
f1d5edc
Implement KQL getschema
ltrk2 Mar 6, 2023
67177b9
Finalize KQL getschema
ltrk2 Mar 7, 2023
860163b
Resolve findings from style check
ltrk2 Mar 7, 2023
be17029
string functions wip
SadiHassan Mar 7, 2023
275488b
string functions updated
SadiHassan Mar 7, 2023
5620705
fix style check
SadiHassan Mar 7, 2023
f04f3a7
Addressed review comments
SadiHassan Mar 7, 2023
e9f1780
bug fix 1333 resubmit
SadiHassan Jan 24, 2023
be22c85
rebased and addressed review comments
SadiHassan Mar 8, 2023
c528dab
Bug fix 2167
SadiHassan Mar 8, 2023
d064f94
Implement default aliasing for KQL print
ltrk2 Mar 7, 2023
6036b6c
bug_fix_2161
SadiHassan Mar 8, 2023
800160c
added alias in unit test
SadiHassan Mar 8, 2023
1c7f6b5
Kusto-phase3: fixed the bug core dump if query end with pipe, force p…
kashwy Mar 10, 2023
dfc51e8
Kusto-phase3: fixed kql range issues
kashwy Mar 12, 2023
0aac4b6
bug fix 2424
SadiHassan Mar 13, 2023
4a6afac
Kusto-phase3 : fix sort issues
kashwy Mar 14, 2023
2a8c27b
Kusto-phase3: fix typo for sort issue
kashwy Mar 14, 2023
36629d6
implementation of has_ipv6(), has_any_ipv6(), has_ipv6_prefix(), and …
bemitc Mar 10, 2023
22c7643
add const to some params
bemitc Mar 12, 2023
6c2331d
add functional and unit tests
bemitc Mar 12, 2023
d9fe9b7
update unit test
bemitc Mar 12, 2023
7ed5fc4
format
bemitc Mar 12, 2023
bcd2974
fix mistake in unit test
bemitc Mar 12, 2023
bb14c9b
remove ErrorCodes::NOT_IMPLEMENTED
bemitc Mar 13, 2023
f48430b
eliminate variables in unit tests
bemitc Mar 15, 2023
ef9869e
undo vscode formatting in unit tests to improve readability
bemitc Mar 15, 2023
aeb01a0
move some duplicated code to header
bemitc Mar 15, 2023
e032c95
reduce duplicate code
bemitc Mar 16, 2023
cdfe2b1
add static_cast
bemitc Mar 16, 2023
55723bc
use std::accumulate instead of std::all_of
bemitc Mar 16, 2023
8f10ac1
use std::numeric_limits
bemitc Mar 16, 2023
f5ccf72
use boost::spirit::x3::repeat
bemitc Mar 16, 2023
dacc0bf
initialize with an empty string
bemitc Mar 16, 2023
42868bd
do initialization inside if
bemitc Mar 16, 2023
3a3baad
check for full match
bemitc Mar 16, 2023
c307b3d
clean up parsing of prefixes with embedded ipv4 addresses
bemitc Mar 16, 2023
016b30f
Update src/Functions/Kusto/kqlHasAnyIp.cpp
bemitc Mar 16, 2023
9dc8436
return std::optional<std::string>
bemitc Mar 16, 2023
901ce5d
switch from list to sequence
bemitc Mar 16, 2023
b455d01
restructure code to be more maintainable
bemitc Mar 17, 2023
a651556
cleanup minor bool issues
bemitc Mar 17, 2023
96d935d
Update src/Functions/Kusto/kqlHasAnyIp.cpp
bemitc Mar 17, 2023
6de6a2e
Update src/Functions/Kusto/kqlHasAnyIp.cpp
bemitc Mar 17, 2023
267905f
Update src/Functions/Kusto/kqlHasAnyIp.cpp
bemitc Mar 17, 2023
aa4fb3f
Update src/Functions/Kusto/kqlHasAnyIp.cpp
bemitc Mar 17, 2023
43b6383
some minor changes suggested by review
bemitc Mar 17, 2023
8b8894e
remove std::move
bemitc Mar 17, 2023
9783db5
Update functional tests
ltrk2 Mar 14, 2023
b85e140
Update release notes
ltrk2 Mar 14, 2023
1b83cc1
function 2395
SadiHassan Mar 9, 2023
40c62cd
native version implemented
SadiHassan Mar 14, 2023
f45b2c8
updated tests
SadiHassan Mar 14, 2023
b6821dd
some minor changes
SadiHassan Mar 15, 2023
ef798bb
style correction
SadiHassan Mar 15, 2023
624f6bc
Revert addition of poco contrib folder
ltrk2 Mar 15, 2023
422c562
Update release notes
ltrk2 Mar 16, 2023
129024a
Core review changes
mcmajam Mar 14, 2023
995f25e
Fix test
mcmajam Mar 14, 2023
7999e73
additional code review changes
mcmajam Mar 15, 2023
6ceb3e2
Code review changes #3
mcmajam Mar 15, 2023
91fca6e
Update readme after release.
mcmajam Mar 16, 2023
0230f90
format corrections
mcmajam Mar 16, 2023
7740b36
bug fix 2174, 2175,1075(improvement)
SadiHassan Mar 10, 2023
e30c2a7
code updated
SadiHassan Mar 10, 2023
1bd8ecf
fixed unit test
SadiHassan Mar 11, 2023
4b7f162
rebased and added more test cases with double quotes
SadiHassan Mar 15, 2023
c1836cc
Kusto-phase3 : enable range to be inside other funtion for a nested call
kashwy Mar 16, 2023
a78b0a3
Implement KQL toscalar
ltrk2 Mar 15, 2023
97659fd
Add further functional tests
ltrk2 Mar 16, 2023
56905a4
Update release notes
ltrk2 Mar 16, 2023
3e56b20
Remove unused include
ltrk2 Mar 16, 2023
4d9c4e9
Add a unit test
ltrk2 Mar 16, 2023
10e4ced
Revert unnecessary changes
ltrk2 Mar 16, 2023
7cf5c07
Kusto-phase3: fixed the alias position to enable alias inside function
kashwy Mar 17, 2023
4f0d28a
Correct type mapping for arrays
ltrk2 Mar 17, 2023
4556b9f
Implement KQL query-wide default column naming scheme
ltrk2 Mar 17, 2023
b2d8739
Get rid of unnecessary changes
ltrk2 Mar 17, 2023
39cc522
Remove unused members
ltrk2 Mar 17, 2023
b886b40
not function
SadiHassan Mar 17, 2023
a9da9fc
updated release note
SadiHassan Mar 17, 2023
09e1a3a
between function work in progress
SadiHassan Mar 16, 2023
3ae2563
solved floating point parsing issue by changing Lexer.cpp, but this c…
SadiHassan Mar 17, 2023
9fc91ec
updated test cases
SadiHassan Mar 17, 2023
6306b41
functional tests
SadiHassan Mar 17, 2023
b9536a3
floating point handled in kql operator cpp
SadiHassan Mar 17, 2023
ceffaa9
update release notes
SadiHassan Mar 17, 2023
629fd07
removed change from Lexer.cpp
SadiHassan Mar 17, 2023
55b5bb3
updated native function + parser
SadiHassan Mar 18, 2023
f8345e2
unit test separated
SadiHassan Mar 18, 2023
5cc82a9
fix unit test for between function
SadiHassan Mar 18, 2023
e3861fa
Kusto-phase3: enable make-series to use expression
kashwy Mar 18, 2023
b386061
Kusto-phase3 : format for fix make-series issues
kashwy Mar 18, 2023
a80f507
KQL URL parse using x3
mcmajam Mar 20, 2023
197a4fc
Code review 1
mcmajam Mar 22, 2023
c1a3137
Additional changes
mcmajam Mar 29, 2023
d69c48a
More changes
mcmajam Mar 31, 2023
ccae6e0
Update readme, slight change in username password.
mcmajam Mar 31, 2023
50d9042
And again
mcmajam Mar 31, 2023
6676058
format
mcmajam Mar 31, 2023
6634679
make_string function
SadiHassan Mar 13, 2023
e3cfb55
removed commented out codes
SadiHassan Mar 13, 2023
b1e2c74
native function implemented
SadiHassan Mar 21, 2023
59a5831
added unit test
SadiHassan Mar 21, 2023
0ac3bc2
added test case with function
SadiHassan Mar 21, 2023
6f8d11e
code improvement and test case added
SadiHassan Mar 22, 2023
49ae441
addressed review coments, added all coverages of unicode, exception etc.
SadiHassan Mar 23, 2023
fd978be
addressed review comments
SadiHassan Mar 24, 2023
5419243
Implement indexof_regex
ltrk2 Mar 23, 2023
1fa246f
Use re2 instead of std::regex
ltrk2 Mar 27, 2023
a80fe03
support multiple output columns in arg_max and arg_min
bemitc Mar 28, 2023
5bcc10b
add unit test for arg_max() and arg_min()
bemitc Mar 28, 2023
eef1d0e
release notes
bemitc Mar 29, 2023
9fefd74
update release notes
bemitc Mar 29, 2023
287033f
bug_fix_2520 (new_guid)
SadiHassan Mar 31, 2023
96fcf1d
addressed review comments
SadiHassan Mar 31, 2023
4da0b50
Fix flaky functional test
ltrk2 Apr 3, 2023
3847254
Fix epoch related issue
mcmajam Mar 31, 2023
1d37373
Code reivew changes
mcmajam Apr 6, 2023
3c34ca7
isascii() function
SadiHassan Mar 29, 2023
817ff72
using splitByString() instead of Regex
SadiHassan Mar 30, 2023
23c1e6a
rebase and addressed review comments
SadiHassan Apr 6, 2023
fb50a45
bug_fix_2512
SadiHassan Apr 3, 2023
c2cb719
added func test
SadiHassan Apr 3, 2023
53d5094
updated func test
SadiHassan Apr 6, 2023
a41a0d0
bug_fix_2511
SadiHassan Apr 10, 2023
ae8e6da
addressed review comments
SadiHassan Apr 10, 2023
1a85471
Implement a very toned-down version of hll functions
ltrk2 Apr 11, 2023
10dfd59
add project-rename operator
bemitc Apr 6, 2023
c1b492e
add unit and functional tests
bemitc Apr 6, 2023
4a8e957
add release notes
bemitc Apr 7, 2023
3bbcf9c
syntax error if any of the expressions lack an assignment
bemitc Apr 12, 2023
695e9c6
improve parsing, exception if we rename the same column multiple time…
bemitc Apr 12, 2023
5a4e100
move bracket_count outside loop
bemitc Apr 12, 2023
c3bb8fd
isutf8 function implemented
SadiHassan Mar 31, 2023
dc6a7c2
rebased and updated release note
SadiHassan Apr 14, 2023
8c16f10
resolve conflict
SadiHassan Apr 14, 2023
38cbd51
not native function
SadiHassan Apr 17, 2023
4ebe7e7
not native updated
SadiHassan Apr 17, 2023
2b5b9f3
addressed review comments
SadiHassan Apr 19, 2023
9d88bdd
bug fix 2616
SadiHassan Apr 19, 2023
fd3511c
Implement default column naming scheme for KQL project
ltrk2 Apr 19, 2023
0acc4cb
Add another functional test case
ltrk2 Apr 20, 2023
fe15ed0
Kusto-phase3 : Fix core dump when table is missing in pipeline
kashwy Apr 25, 2023
c2ab449
Deliver bug fixes
mcmajam Apr 27, 2023
6a57b55
Code review changes
mcmajam May 12, 2023
d096e83
Add test file change
mcmajam May 12, 2023
d4fc732
throw an exception if arg_max or arg_min have fewer than 2 arguments
bemitc May 3, 2023
587aa35
use getArguments() instead of walking the tokens
bemitc May 4, 2023
faf14c7
use auto instead of std::string and eliminate a const that's not needed
bemitc May 5, 2023
f6eaea2
use std::views::filter(...) instead of an if check
bemitc May 5, 2023
a24900c
Kusto-phase3: fix core dump when kql function is not complete
kashwy May 22, 2023
17a5086
correct countof to handle overlapping strings
bemitc May 25, 2023
827df79
remove some headers and reformat
bemitc May 25, 2023
0a4aa78
Update src/Functions/Kusto/kqlCountOverlappingSubstrings.cpp
bemitc Jun 1, 2023
254ea03
Kusto-phase3: updated release note
kashwy Jun 8, 2023
9e53bad
Merge branch 'Kusto-phase3' of https://github.com/ClibMouse/ClickHous…
mcmajam Jun 15, 2023
099d49d
ADd reame update
mcmajam Jun 15, 2023
e6d9a66
#2609: fixed method to return NULL for invalid encoded strings
bhavnajindal Jun 16, 2023
d581fd5
Added gtest
bhavnajindal Jun 16, 2023
f18f464
Added uniqueIdentifier in the query and fixed the gtest accordingly
bhavnajindal Jun 16, 2023
77e567f
Add bhavnjindal as trusted contributor
bhavnajindal Jun 19, 2023
e4b5843
changed dcount implementation to use uniqueCombine64
bhavnajindal Jun 28, 2023
bb518a6
Fixed the regex by adding anchor in Project-Away query
bhavnajindal Jun 21, 2023
0fe68eb
Automatic style fix
robot-clickhouse Jun 23, 2023
5d8311b
Moved changes to utility method, added functional test
bhavnajindal Jun 26, 2023
5b19229
Added functional and unit test
bhavnajindal Jun 29, 2023
d93a51a
Fixed formatting and added early return in method
bhavnajindal Jul 5, 2023
78d302d
Fixed the wildcardToRegex method to return nullopt in case the the st…
bhavnajindal Jun 29, 2023
e8299f7
addressed review comments by refactoring code
bhavnajindal Jun 30, 2023
43b2e4c
code formatting
bhavnajindal Jul 5, 2023
af43efb
[3023]- Enable kql table function support both heredoc and regular fo…
bhavnajindal Jul 17, 2023
546b410
Fixed a few unit test for DateTimeFunctions
bhavnajindal Jul 18, 2023
9857cb1
Kusto-phase3: update release node July
kashwy Jul 18, 2023
cd69539
check for accepted values for accuracy in dcount,dcountif (#375)
bhavnajindal Jul 31, 2023
c0c8dee
Fix compile errors
ltrk2 Aug 3, 2023
41aed6f
Get rid of kusto_auto
ltrk2 Aug 3, 2023
9b8e7f9
Fix as many functional tests as possible
ltrk2 Aug 3, 2023
eada4b1
Update unit tests
ltrk2 Aug 3, 2023
fc314b3
Make hasTokenOrNull return null on empty needle
ltrk2 Aug 4, 2023
085b6f3
Kusto-phase3: support arbitrary heredoc for kql table function
kashwy Aug 16, 2023
f3dc8a0
Merge pull request #384 from ClibMouse/Kusto-p3-support-arbitrary-her…
kashwy Aug 16, 2023
d2d528d
fix-3091 added simple mapping for constant expressions in array index…
bhavnajindal Aug 17, 2023
859cef3
I2527: Fixed NaN issue in variance functions (#379)
bhavnajindal Aug 22, 2023
24a912c
[I1261]: printing datetime throws exceptions (#369)
bhavnajindal Aug 22, 2023
40fac9b
Allowed space between number and unit in time span
bhavnajindal Aug 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
343 changes: 343 additions & 0 deletions .github/workflows/clibmouse_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
name: PR Sanity
run-name: ${{ github.actor }} is running PR sanity check 🚀
env:
# Force the stdout and stderr streams to be unbuffered
PYTHONUNBUFFERED: 1

on: # yamllint disable-line rule:truthy
pull_request:
types:
- synchronize
- reopened
- opened
branches:
- Kusto-phase3
paths-ignore:
- 'docker/docs/**'
- 'docs/**'
- 'website/**'
jobs:
CheckLabels:
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Labels check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 run_check.py
PythonUnitTests:
needs: CheckLabels
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Python unit tests
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 -m unittest discover -s . -p '*_test.py'
DockerHubPushAarch64:
needs: CheckLabels
runs-on: [self-hosted, style-checker-aarch64]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Images check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 docker_images_check.py --suffix aarch64
- name: Upload images files to artifacts
uses: actions/upload-artifact@v2
with:
name: changed_images_aarch64
path: ${{ runner.temp }}/docker_images_check/changed_images_aarch64.json
DockerHubPushAmd64:
needs: CheckLabels
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Images check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 docker_images_check.py --suffix amd64
- name: Upload images files to artifacts
uses: actions/upload-artifact@v2
with:
name: changed_images_amd64
path: ${{ runner.temp }}/docker_images_check/changed_images_amd64.json
DockerHubPush:
needs: [DockerHubPushAmd64, DockerHubPushAarch64, PythonUnitTests]
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Download changed aarch64 images
uses: actions/download-artifact@v2
with:
name: changed_images_aarch64
path: ${{ runner.temp }}
- name: Download changed amd64 images
uses: actions/download-artifact@v2
with:
name: changed_images_amd64
path: ${{ runner.temp }}
- name: Images check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 docker_manifests_merge.py --suffix amd64 --suffix aarch64
- name: Upload images files to artifacts
uses: actions/upload-artifact@v2
with:
name: changed_images
path: ${{ runner.temp }}/changed_images.json
StyleCheck:
needs: DockerHubPush
runs-on: [self-hosted, style-checker]
if: ${{ success() || failure() }}
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{ runner.temp }}/style_check
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
RCSK
EOF
- name: Download changed images
# even if artifact does not exist, e.g. on `do not test` label or failed Docker job
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: changed_images
path: ${{ env.TEMP_PATH }}
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Style Check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 style_check.py
- name: Cleanup
if: always()
run: |
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH"
BuilderDebRelease:
needs: [DockerHubPush]
runs-on: [self-hosted, builder]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/build_check
IMAGES_PATH=${{runner.temp}}/images_path
REPO_COPY=${{runner.temp}}/build_check/ClickHouse
CACHES_PATH=${{runner.temp}}/../ccaches
BUILD_NAME=package_release
EOF
- name: Download changed images
uses: actions/download-artifact@v3
with:
name: changed_images
path: ${{ env.IMAGES_PATH }}
- name: Check out repository code
uses: ClickHouse/checkout@v1
with:
clear-repository: true
fetch-depth: 0 # for performance artifact
submodules: true
- name: Build
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.BUILD_URLS }}
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
- name: Cleanup
if: always()
run: |
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
BuilderBinRelease:
needs: [DockerHubPush]
runs-on: [self-hosted, builder]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/build_check
IMAGES_PATH=${{runner.temp}}/images_path
REPO_COPY=${{runner.temp}}/build_check/ClickHouse
CACHES_PATH=${{runner.temp}}/../ccaches
BUILD_NAME=binary_release
EOF
- name: Download changed images
uses: actions/download-artifact@v2
with:
name: changed_images
path: ${{ env.IMAGES_PATH }}
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Build
run: |
git -C "$GITHUB_WORKSPACE" submodule sync --recursive
git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v2
with:
name: ${{ env.BUILD_URLS }}
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
- name: Cleanup
if: always()
run: |
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinClangTidy:
needs: [DockerHubPush, StyleCheck]
runs-on: [self-hosted, builder]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/build_check
IMAGES_PATH=${{runner.temp}}/images_path
REPO_COPY=${{runner.temp}}/build_check/ClickHouse
CACHES_PATH=${{runner.temp}}/../ccaches
BUILD_NAME=binary_tidy
EOF
- name: Download changed images
uses: actions/download-artifact@v3
with:
name: changed_images
path: ${{ env.IMAGES_PATH }}
- name: Check out repository code
uses: ClickHouse/checkout@v1
with:
clear-repository: true
submodules: true
- name: Build
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.BUILD_URLS }}
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
- name: Cleanup
if: always()
run: |
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
UnitTestsReleaseClang:
needs: [BuilderBinRelease]
runs-on: [self-hosted, fuzzer-unit-tester]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/unit_tests_asan
REPORTS_PATH=${{runner.temp}}/reports_dir
CHECK_NAME=Unit tests (release-clang)
REPO_COPY=${{runner.temp}}/unit_tests_asan/ClickHouse
EOF
- name: Download json reports
uses: actions/download-artifact@v2
with:
path: ${{ env.REPORTS_PATH }}
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Unit test
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci"
python3 unit_tests_check.py "$CHECK_NAME"
- name: Cleanup
if: always()
run: |
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestRelease:
needs: [BuilderDebRelease]
runs-on: [self-hosted, func-tester]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/stateless_release
REPORTS_PATH=${{runner.temp}}/reports_dir
CHECK_NAME=Stateless tests (release)
REPO_COPY=${{runner.temp}}/stateless_release/ClickHouse
KILL_TIMEOUT=10800
EOF
- name: Download json reports
uses: actions/download-artifact@v3
with:
path: ${{ env.REPORTS_PATH }}
- name: Check out repository code
uses: ClickHouse/checkout@v1
with:
clear-repository: true
- name: Functional test
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci"
python3 functional_test_check.py "$CHECK_NAME" "$KILL_TIMEOUT"
- name: Cleanup
if: always()
run: |
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
4 changes: 2 additions & 2 deletions base/poco/Foundation/include/Poco/URI.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Foundation_API URI
URI();
/// Creates an empty URI.

explicit URI(const std::string & uri, bool disable_url_encoding = false);
explicit URI(const std::string & uri, bool enable_url_encoding = true);
/// Parses an URI from the given string. Throws a
/// SyntaxException if the uri is not valid.

Expand Down Expand Up @@ -362,7 +362,7 @@ class Foundation_API URI
std::string _query;
std::string _fragment;

bool _disable_url_encoding = false;
bool _enable_url_encoding = true;
};


Expand Down
Loading