Skip to content

Commit 31a439a

Browse files
authored
Cli fixes (#9871)
1 parent 8d4d3a4 commit 31a439a

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

ydb/apps/ydb/ya.make

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PROGRAM(ydb)
22

3-
STRIP()
3+
IF(RELEASE)
4+
STRIP()
5+
ENDIF()
46

57
SRCS(
68
main.cpp

ydb/library/workload/tpcds/driver.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414

1515
option_t options[] = {
1616
{"SCALE", OPT_INT, 0, "scale", NULL, "1"},
17-
{"PARALLEL", OPT_INT, 0, "process count", NULL, ""},
18-
{"CHILD", OPT_INT, 0, "process index", NULL, "1"},
17+
{"PARALLEL", OPT_INT, 1, "process count", NULL, ""},
18+
{"CHILD", OPT_INT, 2, "process index", NULL, "1"},
1919
{NULL, 0, 0, NULL, NULL, NULL}
2020
};
2121

2222
char* params[] = {
23-
NULL
23+
NULL,
24+
NULL,
25+
NULL,
2426
};
2527

2628
file_ref_t *pCurrentFile;

ydb/tests/functional/clickbench/data/queries-deterministic.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/*15*/ SELECT UserID, COUNT(*) as cnt FROM $data GROUP BY UserID ORDER BY cnt DESC LIMIT 10;
1717
/*16*/ SELECT UserID, SearchPhrase, COUNT(*) as cnt FROM $data GROUP BY UserID, SearchPhrase ORDER BY cnt DESC LIMIT 10;
1818
/*17*/ SELECT UserID, SearchPhrase, COUNT(*) as u FROM $data GROUP BY UserID, SearchPhrase ORDER BY UserID, SearchPhrase, u LIMIT 10;
19-
/*18*/ SELECT UserID, m, SearchPhrase, COUNT(*) as cnt FROM $data GROUP BY UserID, DateTime::GetMinute(EventTime) AS m, SearchPhrase ORDER BY cnt DESC, UserID, m, SearchPhrase LIMIT 10;
19+
/*18*/ SELECT UserID, m, SearchPhrase, COUNT(*) as cnt FROM $data GROUP BY UserID, DateTime::GetMinute(Cast(EventTime as Timestamp)) AS m, SearchPhrase ORDER BY cnt DESC, UserID, m, SearchPhrase LIMIT 10;
2020
/*19*/ SELECT UserID FROM $data WHERE UserID = 435090932899640449;
2121
/*20*/ SELECT COUNT(*) FROM $data WHERE URL LIKE '%google%';
2222
/*21*/ SELECT SearchPhrase, MIN(URL), COUNT(*) AS c FROM $data WHERE URL LIKE '%google%' AND SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;
@@ -40,4 +40,4 @@
4040
/*39*/ SELECT TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst, COUNT(*) AS PageViews FROM $data WHERE CounterID = 62 AND EventDate >= Date('2013-07-01') AND EventDate <= Date('2013-07-31') AND IsRefresh = 0 GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID = 0 AND AdvEngineID = 0) THEN Referer ELSE '' END AS Src, URL AS Dst ORDER BY PageViews DESC, Dst, Src DESC LIMIT 10 OFFSET 1000;
4141
/*40*/ SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM $data WHERE CounterID = 62 AND EventDate >= Date('2013-07-01') AND EventDate <= Date('2013-07-31') AND IsRefresh = 0 AND TraficSourceID IN (-1, 6) AND RefererHash = 3594120000172545465 GROUP BY URLHash, EventDate ORDER BY PageViews DESC, URLHash DESC LIMIT 10 OFFSET 100;
4242
/*41*/ SELECT WindowClientWidth, WindowClientHeight, COUNT(*) AS PageViews FROM $data WHERE CounterID = 62 AND EventDate >= Date('2013-07-01') AND EventDate <= Date('2013-07-31') AND IsRefresh = 0 AND DontCountHits = 0 AND URLHash = 2868770270353813622 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC, WindowClientWidth DESC, WindowClientHeight DESC LIMIT 10 OFFSET 10000;
43-
/*42*/ SELECT Minute, COUNT(*) AS PageViews FROM $data WHERE CounterID = 62 AND EventDate >= Date('2013-07-14') AND EventDate <= Date('2013-07-15') AND IsRefresh = 0 AND DontCountHits = 0 GROUP BY DateTime::ToSeconds(EventTime)/60 As Minute ORDER BY Minute LIMIT 10 OFFSET 1000;
43+
/*42*/ SELECT Minute, COUNT(*) AS PageViews FROM $data WHERE CounterID = 62 AND CAST(EventDate AS Date) >= Date('2013-07-14') AND CAST(EventDate AS Date) <= Date('2013-07-15') AND IsRefresh = 0 AND DontCountHits = 0 GROUP BY DateTime::ToSeconds(Cast(EventTime as Timestamp))/60 As Minute ORDER BY Minute LIMIT 10 OFFSET 1000;

0 commit comments

Comments
 (0)