Skip to content

Commit 91a679b

Browse files
Merge branch 'master' into add-test-58987
2 parents 0f0d450 + 9a2019a commit 91a679b

File tree

427 files changed

+13912
-5260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

427 files changed

+13912
-5260
lines changed

base/base/Decimal.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace DB
1010
{
1111
template <class> struct Decimal;
1212
class DateTime64;
13+
class Time64;
1314

1415
#define FOR_EACH_UNDERLYING_DECIMAL_TYPE(M) \
1516
M(Int32) \
@@ -142,6 +143,16 @@ class DateTime64 : public Decimal64
142143

143144
constexpr DateTime64(const Base & v): Base(v) {} // NOLINT(google-explicit-constructor)
144145
};
146+
147+
class Time64 : public Decimal64
148+
{
149+
public:
150+
using Base = Decimal64;
151+
using Base::Base;
152+
using NativeType = Base::NativeType;
153+
154+
constexpr Time64(const Base & v): Base(v) {} // NOLINT(google-explicit-constructor)
155+
};
145156
}
146157

147158
constexpr UInt64 max_uint_mask = std::numeric_limits<UInt64>::max();
@@ -173,6 +184,15 @@ namespace std
173184
}
174185
};
175186

187+
template <>
188+
struct hash<DB::Time64>
189+
{
190+
size_t operator()(const DB::Time64 & x) const
191+
{
192+
return std::hash<DB::Time64::NativeType>()(x);
193+
}
194+
};
195+
176196
template <>
177197
struct hash<DB::Decimal256>
178198
{

base/base/Decimal_fwd.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ using Decimal128 = Decimal<Int128>;
2727
using Decimal256 = Decimal<Int256>;
2828

2929
class DateTime64;
30+
class Time64;
3031

3132
template <class T>
3233
concept is_decimal =
3334
std::is_same_v<T, Decimal32>
3435
|| std::is_same_v<T, Decimal64>
3536
|| std::is_same_v<T, Decimal128>
3637
|| std::is_same_v<T, Decimal256>
37-
|| std::is_same_v<T, DateTime64>;
38+
|| std::is_same_v<T, DateTime64>
39+
|| std::is_same_v<T, Time64>;
3840

3941
template <class T>
4042
concept is_over_big_int =

base/base/TypeName.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ TN_MAP(Decimal64)
4444
TN_MAP(Decimal128)
4545
TN_MAP(Decimal256)
4646
TN_MAP(DateTime64)
47+
TN_MAP(Time64)
4748
TN_MAP(Array)
4849
TN_MAP(Tuple)
4950
TN_MAP(Map)

base/base/extended_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ template <typename T> concept is_floating_point =
7474
M(DataTypeDate) \
7575
M(DataTypeDate32) \
7676
M(DataTypeDateTime) \
77+
M(DataTypeTime) \
7778
M(DataTypeInt8) \
7879
M(DataTypeUInt8) \
7980
M(DataTypeInt16) \
@@ -94,6 +95,7 @@ template <typename T> concept is_floating_point =
9495
M(DataTypeDate, X) \
9596
M(DataTypeDate32, X) \
9697
M(DataTypeDateTime, X) \
98+
M(DataTypeTime, X) \
9799
M(DataTypeInt8, X) \
98100
M(DataTypeUInt8, X) \
99101
M(DataTypeInt16, X) \

ci/jobs/docs_job.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
Result.from_commands_run(
7878
name=testname,
7979
command=[
80-
"yarn build-api-doc",
8180
"yarn build-swagger",
8281
"export DOCUSAURUS_IGNORE_SSG_WARNINGS=true && yarn build-docs",
8382
],

ci/jobs/scripts/check_style/aspell-ignore/en/aspell-dict.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,7 @@ aggthrow
12511251
aiochclient
12521252
alloc
12531253
allocator
1254+
allowlist
12541255
alphaTokens
12551256
amplab
12561257
analysisOfVariance
@@ -1687,6 +1688,7 @@ denormalize
16871688
denormalized
16881689
denormalizing
16891690
denormals
1691+
denylist
16901692
dequeued
16911693
dequeues
16921694
dereference
@@ -3043,6 +3045,7 @@ toStartOfYear
30433045
toString
30443046
toStringCutToZero
30453047
toTime
3048+
toTimeWithFixedDate
30463049
toTimeZone
30473050
toType
30483051
toTypeName

ci/jobs/scripts/functional_tests_results.py

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
# out = csv.writer(f, delimiter="\t")
2727
# out.writerow(status)
2828

29-
BROKEN_TESTS_ANALYZER_TECH_DEBT = [
30-
"01624_soft_constraints",
31-
]
32-
3329

3430
class FTResultsProcessor:
3531
@dataclasses.dataclass
@@ -50,7 +46,6 @@ def __init__(self, wd):
5046
self.tests_output_file = f"{wd}/test_result.txt"
5147
# self.test_results_parsed_file = f"{wd}/test_result.tsv"
5248
# self.status_file = f"{wd}/check_status.tsv"
53-
self.broken_tests = BROKEN_TESTS_ANALYZER_TECH_DEBT
5449

5550
def _process_test_output(self):
5651
total = 0
@@ -97,41 +92,20 @@ def _process_test_output(self):
9792

9893
total += 1
9994
if TIMEOUT_SIGN in line:
100-
if test_name in self.broken_tests:
101-
success += 1
102-
test_results.append((test_name, "BROKEN", test_time, []))
103-
else:
104-
failed += 1
105-
test_results.append((test_name, "Timeout", test_time, []))
95+
failed += 1
96+
test_results.append((test_name, "Timeout", test_time, []))
10697
elif FAIL_SIGN in line:
107-
if test_name in self.broken_tests:
108-
success += 1
109-
test_results.append((test_name, "BROKEN", test_time, []))
110-
else:
111-
failed += 1
112-
test_results.append((test_name, "FAIL", test_time, []))
98+
failed += 1
99+
test_results.append((test_name, "FAIL", test_time, []))
113100
elif UNKNOWN_SIGN in line:
114101
unknown += 1
115102
test_results.append((test_name, "FAIL", test_time, []))
116103
elif SKIPPED_SIGN in line:
117104
skipped += 1
118105
test_results.append((test_name, "SKIPPED", test_time, []))
119106
else:
120-
if OK_SIGN in line and test_name in self.broken_tests:
121-
skipped += 1
122-
test_results.append(
123-
(
124-
test_name,
125-
"NOT_FAILED",
126-
test_time,
127-
[
128-
"This test passed. Update analyzer_tech_debt.txt.\n"
129-
],
130-
)
131-
)
132-
else:
133-
success += int(OK_SIGN in line)
134-
test_results.append((test_name, "OK", test_time, []))
107+
success += int(OK_SIGN in line)
108+
test_results.append((test_name, "OK", test_time, []))
135109
test_end = False
136110
elif (
137111
len(test_results) > 0

ci/jobs/scripts/workflow_hooks/trusted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
e.lower()
88
for e in [
99
"amosbird",
10+
"azat",
1011
"den-crane", # Documentation contributor
1112
"taiyang-li",
1213
"ucasFL", # Amos Bird's friend
13-
"tonickkozlov", # Cloudflare
1414
"canhld94",
1515
]
1616
}

docker/test/fuzzer/run-fuzzer.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,11 @@ EOF
379379
elif [ "$server_died" == 1 ]
380380
then
381381
# The server has died.
382-
if ! rg --text -o 'Received signal.*|Logical error.*|Assertion.*failed|Failed assertion.*|.*runtime error: .*|.*is located.*|(SUMMARY|ERROR): [a-zA-Z]+Sanitizer:.*|.*_LIBCPP_ASSERT.*|.*Child process was terminated by signal 9.*' server.log > description.txt
382+
if rg --text -o 'Received signal.*|Logical error.*|Assertion.*failed|Failed assertion.*|.*runtime error: .*|.*is located.*|(SUMMARY|ERROR): [a-zA-Z]+Sanitizer:.*|.*_LIBCPP_ASSERT.*|.*Child process was terminated by signal 9.*' server.log > description.txt
383383
then
384+
# Save the stack trace of the server to the description file and preserve in raw text output.
385+
rg --text '\s<Fatal>\s' server.log >> description.txt || :
386+
else
384387
echo "Lost connection to server. See the logs." > description.txt
385388
fi
386389

docs/en/engines/table-engines/mergetree-family/annindexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ returns
394394
└────┴─────────┘
395395
```
396396

397-
# References {#references}
397+
## References {#references}
398398

399399
Blogs:
400400
- [Vector Search with ClickHouse - Part 1](https://clickhouse.com/blog/vector-search-clickhouse-p1)

0 commit comments

Comments
 (0)