Skip to content

Commit 3810dc3

Browse files
[ui-core] add prettier script in package.json (#4162)
1 parent e89a5ed commit 3810dc3

File tree

131 files changed

+1250
-3161
lines changed

Some content is hidden

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

131 files changed

+1250
-3161
lines changed

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
coverage
4+
.vscode
5+
6+
desktop/core/src/desktop/js/ext
7+
**.js

desktop/core/src/desktop/js/apps/admin/AdminHeader.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
display: flex;
2222
align-items: center;
2323

24-
.admin-header__select-dropdown{
24+
.admin-header__select-dropdown {
2525
border: 1px solid $fluidx-gray-600;
2626
border-radius: $border-radius-base;
2727
background-color: $fluidx-white;
2828
width: 25%;
2929
height: 32px;
3030
}
3131

32-
.admin-header__input-filter{
32+
.admin-header__input-filter {
3333
margin: $font-size-sm;
3434
width: 25%;
3535

@@ -44,4 +44,4 @@
4444
display: block;
4545
}
4646
}
47-
}
47+
}

desktop/core/src/desktop/js/apps/admin/Overview/Overview.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
margin: 10px 0;
4646
}
4747

48-
.config__table-name, .config__table-value {
48+
.config__table-name,
49+
.config__table-value {
4950
color: $fluidx-gray-900;
5051
font-size: 12px;
5152
border-radius: 5px;
@@ -60,7 +61,7 @@
6061
height: 100vh;
6162
}
6263

63-
.examples__install-btn{
64+
.examples__install-btn {
6465
margin: 10px;
6566
}
6667

desktop/core/src/desktop/js/apps/admin/ServerLogs/ServerLogsHeader.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17-
1817
@import '../../../components/styles/variables';
1918

2019
.antd.cuix {
@@ -33,7 +32,7 @@
3332
-webkit-box-shadow: none;
3433
margin-top: 3px;
3534
}
36-
35+
3736
.server__input-filter--prefix {
3837
margin: 5px 3px 3px 3px;
3938
}

desktop/core/src/desktop/js/apps/editor/components/aceEditor/AceEditor.scss

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,13 @@
236236
padding: 3px;
237237
cursor: pointer;
238238
position: relative;
239-
font: 12px normal Roboto Mono, Menlo, Monaco, Consolas, "Courier New", monospace;
239+
font:
240+
12px normal Roboto Mono,
241+
Menlo,
242+
Monaco,
243+
Consolas,
244+
'Courier New',
245+
monospace;
240246
direction: ltr;
241247
line-height: 18px;
242248
}
@@ -344,7 +350,13 @@
344350
background-color: $fluidx-gray-040;
345351
padding: 3px;
346352
color: $fluidx-gray-700;
347-
font: 12px normal Roboto Mono, Menlo, Monaco, Consolas, "Courier New", monospace;
353+
font:
354+
12px normal Roboto Mono,
355+
Menlo,
356+
Monaco,
357+
Consolas,
358+
'Courier New',
359+
monospace;
348360
direction: ltr;
349361
}
350362

desktop/core/src/desktop/js/apps/editor/components/result/reactExample/ReactExample.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@use 'variables' as vars;
44
@use 'mixins';
55

6-
$my-color: #f8f8f8;
6+
$my-color: #f8f8f8;
77

88
.react-example {
99
background-color: $my-color;

desktop/core/src/desktop/js/apps/editor/components/sqlScratchpad/SqlScratchpad.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@import '../../../../components/styles/mixins';
2020

2121
.sql-scratchpad {
22-
font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
22+
font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
2323
width: 100%;
2424
height: 100%;
2525
overflow: hidden;

desktop/core/src/desktop/js/apps/editor/components/variableSubstitution/VariableSubstitution.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.variable-substitution {
55
padding: 5px;
66

7-
>:not(:first-child) {
7+
> :not(:first-child) {
88
margin-left: 10px;
99
}
1010

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
11
{
22
"query": {
3-
"queryId": "e140b4f4dff9c2d5:cf78c8f400000000",
4-
"queryText": "SELECT *\nFROM `default`.sample_08\nLIMIT 105",
5-
"status": "FINISHED",
6-
"queryType": "QUERY",
7-
"startTime": 1678521664204,
8-
"endTime": 1678521667266,
9-
"duration": 3062,
10-
"userName": "admin",
11-
"coordinator": "sree-test2-1.sree-test2.root.hwx.site:27000",
12-
"cpuTime": 1,
13-
"rowsProduced": 105,
14-
"peakMemory": 4225761,
15-
"hdfsBytesRead": 96126
3+
"queryId": "e140b4f4dff9c2d5:cf78c8f400000000",
4+
"queryText": "SELECT *\nFROM `default`.sample_08\nLIMIT 105",
5+
"status": "FINISHED",
6+
"queryType": "QUERY",
7+
"startTime": 1678521664204,
8+
"endTime": 1678521667266,
9+
"duration": 3062,
10+
"userName": "admin",
11+
"coordinator": "sree-test2-1.sree-test2.root.hwx.site:27000",
12+
"cpuTime": 1,
13+
"rowsProduced": 105,
14+
"peakMemory": 4225761,
15+
"hdfsBytesRead": 96126
1616
},
1717
"profile": {
18-
"summaryMap": {
19-
"Estimated Per-Host Mem": "71319552",
20-
"Per Host Number of Fragment Instances": "sree-test2-2.sree-test2.root.hwx.site:27000(1) sree-test2-1.sree-test2.root.hwx.site:27000(1)",
21-
"User": "admin",
22-
"Start Time": "2023-03-11 08:01:04.204660000",
23-
"Connected User": "hue",
24-
"ExecSummary": "\nOperator #Hosts #Inst Avg Time Max Time #Rows Est. #Rows Peak Mem Est. Peak Mem Detail \n--------------------------------------------------------------------------------------------------------------------------\nF01:ROOT 1 1 105.431us 105.431us 4.01 MB 4.00 MB \n01:EXCHANGE 1 1 32.077us 32.077us 105 105 16.00 KB 16.00 KB UNPARTITIONED \nF00:EXCHANGE SENDER 1 1 165.330us 165.330us 3.88 KB 0 \n00:SCAN HDFS 1 1 3.883ms 3.883ms 105 105 172.96 KB 64.00 MB default.sample_08",
25-
"Query Options (set by configuration and planner)": "QUERY_TIMEOUT_S=300,MT_DOP=0,IDLE_SESSION_TIMEOUT=900,TIMEZONE=UTC,DEFAULT_FILE_FORMAT=PARQUET,DEFAULT_TRANSACTIONAL_TYPE=INSERT_ONLY,MINMAX_FILTER_THRESHOLD=0.5,MINMAX_FILTERING_LEVEL=PAGE",
26-
"Tables Missing Stats": "default.sample_08",
27-
"Query Type": "QUERY",
28-
"Session Type": "HIVESERVER2",
29-
"Per Host Min Memory Reservation": "sree-test2-2.sree-test2.root.hwx.site:27000(64.00 KB) sree-test2-1.sree-test2.root.hwx.site:27000(4.00 MB)",
30-
"Session ID": "434af3e40c14f427:a836c6f0ced92583",
31-
"Executor Group": "default",
32-
"Query Status": "OK",
33-
"Query State": "FINISHED",
34-
"End Time": "2023-03-11 08:01:07.266477000",
35-
"HiveServer2 Protocol Version": "V6",
36-
"Admission result": "Admitted immediately",
37-
"Delegated User": "admin",
38-
"Impala Version": "impalad version 4.0.0.7.2.17.0-140 RELEASE (build d0609b8f4cca258c229637691977fc48b3e5e028)",
39-
"Sql Statement": "SELECT *\nFROM `default`.sample_08\nLIMIT 105",
40-
"Coordinator": "sree-test2-1.sree-test2.root.hwx.site:27000",
41-
"Plan": "\n----------------\nMax Per-Host Resource Reservation: Memory=4.06MB Threads=3\nPer-Host Resource Estimates: Memory=68MB\nCodegen disabled by planner\nWARNING: The following tables are missing relevant table and/or column statistics.\ndefault.sample_08\nAnalyzed query: SELECT * FROM `default`.sample_08 LIMIT CAST(105 AS TINYINT)\n\nF01:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1\n| Per-Host Resources: mem-estimate=4.02MB mem-reservation=4.00MB thread-reservation=1\nPLAN-ROOT SINK\n| output exprs: default.sample_08.code, default.sample_08.description, default.sample_08.total_emp, default.sample_08.salary\n| mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0\n|\n01:EXCHANGE [UNPARTITIONED]\n| limit: 105\n| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0\n| tuple-ids=0 row-size=32B cardinality=105\n| in pipelines: 00(GETNEXT)\n|\nF00:PLAN FRAGMENT [RANDOM] hosts=1 instances=1\nPer-Host Resources: mem-estimate=64.00MB mem-reservation=64.00KB thread-reservation=2\n00:SCAN HDFS [default.sample_08, RANDOM]\n HDFS partitions=1/1 files=1 size=47.40KB\n stored statistics:\n table: rows=823 size=47.40KB\n columns: unavailable\n extrapolated-rows=disabled max-scan-range-rows=823\n limit: 105\n mem-estimate=64.00MB mem-reservation=64.00KB thread-reservation=1\n tuple-ids=0 row-size=32B cardinality=105\n in pipelines: 00(GETNEXT)\n----------------",
42-
"Errors": "",
43-
"Impala Query State": "FINISHED",
44-
"Default Db": "default",
45-
"Network Address": "172.27.38.15:41232",
46-
"Request Pool": "root.admin",
47-
"Cluster Memory Admitted": "136.03 MB",
48-
"Query Options (set by configuration)": "QUERY_TIMEOUT_S=300,IDLE_SESSION_TIMEOUT=900,TIMEZONE=UTC,DEFAULT_FILE_FORMAT=PARQUET,DEFAULT_TRANSACTIONAL_TYPE=INSERT_ONLY"
49-
},
50-
"hdfsMetrics": {
51-
"hdfs_bytes_read": "96126",
52-
"hdfs_bytes_read_local": "96126",
53-
"hdfs_bytes_read_local_percentage": "100",
54-
"hdfs_bytes_read_remote": "0",
55-
"hdfs_bytes_read_remote_percentage": "0",
56-
"hdfs_bytes_read_short_circuit": "96126",
57-
"hdfs_bytes_read_short_circuit_percentage": "100",
58-
"hdfs_bytes_read_from_cache": "0",
59-
"hdfs_bytes_read_from_cache_percentage": "0",
60-
"hdfs_average_scan_range": "96126.0"
61-
},
62-
"memoryMetrics": {
63-
"memory_per_node_peak": "4225761.28",
64-
"memory_per_node_peak_node": "sree-test2-1.sree-test2.root.hwx.site:27000"
65-
},
66-
"cpuMetrics": {},
67-
"threadTimeMetrics": {
68-
"thread_total_time": "9",
69-
"thread_cpu_time": "1",
70-
"thread_cpu_time_percentage": "19",
71-
"thread_storage_wait_time": "2",
72-
"thread_storage_wait_time_percentage": "30",
73-
"thread_network_send_wait_time": "0",
74-
"thread_network_send_wait_time_percentage": "6",
75-
"thread_network_receive_wait_time": "4",
76-
"thread_network_receive_wait_time_percentage": "45",
77-
"planning_wait_time": "11",
78-
"planning_wait_time_percentage": "0",
79-
"client_fetch_wait_time": "6269513",
80-
"client_fetch_wait_time_percentage": "204752"
81-
},
82-
"insertMetrics": {},
83-
"queryId": "e140b4f4dff9c2d5:cf78c8f400000000"
18+
"summaryMap": {
19+
"Estimated Per-Host Mem": "71319552",
20+
"Per Host Number of Fragment Instances": "sree-test2-2.sree-test2.root.hwx.site:27000(1) sree-test2-1.sree-test2.root.hwx.site:27000(1)",
21+
"User": "admin",
22+
"Start Time": "2023-03-11 08:01:04.204660000",
23+
"Connected User": "hue",
24+
"ExecSummary": "\nOperator #Hosts #Inst Avg Time Max Time #Rows Est. #Rows Peak Mem Est. Peak Mem Detail \n--------------------------------------------------------------------------------------------------------------------------\nF01:ROOT 1 1 105.431us 105.431us 4.01 MB 4.00 MB \n01:EXCHANGE 1 1 32.077us 32.077us 105 105 16.00 KB 16.00 KB UNPARTITIONED \nF00:EXCHANGE SENDER 1 1 165.330us 165.330us 3.88 KB 0 \n00:SCAN HDFS 1 1 3.883ms 3.883ms 105 105 172.96 KB 64.00 MB default.sample_08",
25+
"Query Options (set by configuration and planner)": "QUERY_TIMEOUT_S=300,MT_DOP=0,IDLE_SESSION_TIMEOUT=900,TIMEZONE=UTC,DEFAULT_FILE_FORMAT=PARQUET,DEFAULT_TRANSACTIONAL_TYPE=INSERT_ONLY,MINMAX_FILTER_THRESHOLD=0.5,MINMAX_FILTERING_LEVEL=PAGE",
26+
"Tables Missing Stats": "default.sample_08",
27+
"Query Type": "QUERY",
28+
"Session Type": "HIVESERVER2",
29+
"Per Host Min Memory Reservation": "sree-test2-2.sree-test2.root.hwx.site:27000(64.00 KB) sree-test2-1.sree-test2.root.hwx.site:27000(4.00 MB)",
30+
"Session ID": "434af3e40c14f427:a836c6f0ced92583",
31+
"Executor Group": "default",
32+
"Query Status": "OK",
33+
"Query State": "FINISHED",
34+
"End Time": "2023-03-11 08:01:07.266477000",
35+
"HiveServer2 Protocol Version": "V6",
36+
"Admission result": "Admitted immediately",
37+
"Delegated User": "admin",
38+
"Impala Version": "impalad version 4.0.0.7.2.17.0-140 RELEASE (build d0609b8f4cca258c229637691977fc48b3e5e028)",
39+
"Sql Statement": "SELECT *\nFROM `default`.sample_08\nLIMIT 105",
40+
"Coordinator": "sree-test2-1.sree-test2.root.hwx.site:27000",
41+
"Plan": "\n----------------\nMax Per-Host Resource Reservation: Memory=4.06MB Threads=3\nPer-Host Resource Estimates: Memory=68MB\nCodegen disabled by planner\nWARNING: The following tables are missing relevant table and/or column statistics.\ndefault.sample_08\nAnalyzed query: SELECT * FROM `default`.sample_08 LIMIT CAST(105 AS TINYINT)\n\nF01:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1\n| Per-Host Resources: mem-estimate=4.02MB mem-reservation=4.00MB thread-reservation=1\nPLAN-ROOT SINK\n| output exprs: default.sample_08.code, default.sample_08.description, default.sample_08.total_emp, default.sample_08.salary\n| mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0\n|\n01:EXCHANGE [UNPARTITIONED]\n| limit: 105\n| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0\n| tuple-ids=0 row-size=32B cardinality=105\n| in pipelines: 00(GETNEXT)\n|\nF00:PLAN FRAGMENT [RANDOM] hosts=1 instances=1\nPer-Host Resources: mem-estimate=64.00MB mem-reservation=64.00KB thread-reservation=2\n00:SCAN HDFS [default.sample_08, RANDOM]\n HDFS partitions=1/1 files=1 size=47.40KB\n stored statistics:\n table: rows=823 size=47.40KB\n columns: unavailable\n extrapolated-rows=disabled max-scan-range-rows=823\n limit: 105\n mem-estimate=64.00MB mem-reservation=64.00KB thread-reservation=1\n tuple-ids=0 row-size=32B cardinality=105\n in pipelines: 00(GETNEXT)\n----------------",
42+
"Errors": "",
43+
"Impala Query State": "FINISHED",
44+
"Default Db": "default",
45+
"Network Address": "172.27.38.15:41232",
46+
"Request Pool": "root.admin",
47+
"Cluster Memory Admitted": "136.03 MB",
48+
"Query Options (set by configuration)": "QUERY_TIMEOUT_S=300,IDLE_SESSION_TIMEOUT=900,TIMEZONE=UTC,DEFAULT_FILE_FORMAT=PARQUET,DEFAULT_TRANSACTIONAL_TYPE=INSERT_ONLY"
49+
},
50+
"hdfsMetrics": {
51+
"hdfs_bytes_read": "96126",
52+
"hdfs_bytes_read_local": "96126",
53+
"hdfs_bytes_read_local_percentage": "100",
54+
"hdfs_bytes_read_remote": "0",
55+
"hdfs_bytes_read_remote_percentage": "0",
56+
"hdfs_bytes_read_short_circuit": "96126",
57+
"hdfs_bytes_read_short_circuit_percentage": "100",
58+
"hdfs_bytes_read_from_cache": "0",
59+
"hdfs_bytes_read_from_cache_percentage": "0",
60+
"hdfs_average_scan_range": "96126.0"
61+
},
62+
"memoryMetrics": {
63+
"memory_per_node_peak": "4225761.28",
64+
"memory_per_node_peak_node": "sree-test2-1.sree-test2.root.hwx.site:27000"
65+
},
66+
"cpuMetrics": {},
67+
"threadTimeMetrics": {
68+
"thread_total_time": "9",
69+
"thread_cpu_time": "1",
70+
"thread_cpu_time_percentage": "19",
71+
"thread_storage_wait_time": "2",
72+
"thread_storage_wait_time_percentage": "30",
73+
"thread_network_send_wait_time": "0",
74+
"thread_network_send_wait_time_percentage": "6",
75+
"thread_network_receive_wait_time": "4",
76+
"thread_network_receive_wait_time_percentage": "45",
77+
"planning_wait_time": "11",
78+
"planning_wait_time_percentage": "0",
79+
"client_fetch_wait_time": "6269513",
80+
"client_fetch_wait_time_percentage": "204752"
81+
},
82+
"insertMetrics": {},
83+
"queryId": "e140b4f4dff9c2d5:cf78c8f400000000"
8484
}
8585
}

0 commit comments

Comments
 (0)