apache / shardingsphere
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system42% (85,153 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
yaml81% (53,620 lines)
g445% (19,443 lines)
java11% (10,225 lines)
ftl83% (1,804 lines)
proto21% (34 lines)
xml5% (27 lines)
Duplication per Component (primary)
infra70% (54,250 lines)
parser36% (19,848 lines)
kernel23% (5,563 lines)
features17% (3,181 lines)
proxy6% (645 lines)
mode14% (588 lines)
jdbc9% (529 lines)
db-protocol6% (282 lines)
agent15% (240 lines)
distribution13% (27 lines)
src0% (0 lines)

Duplication Between Components (50+ lines)

G kernel kernel parser parser kernel--parser 4516 features features features--kernel 3862 features--parser 3797 jdbc jdbc jdbc--kernel 338 agent agent infra infra agent--infra 93 infra--kernel 55

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 41,209 duplicates...
Size#FoldersFilesLinesCode
697 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
19:715 (99%)
19:715 (99%)
view
545 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
19:563 (99%)
19:563 (78%)
view
545 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
19:563 (99%)
19:563 (78%)
view
545 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
19:563 (99%)
19:563 (78%)
view
545 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
19:563 (99%)
19:563 (78%)
view
545 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
19:563 (99%)
19:563 (99%)
view
514 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
18:531 (78%)
18:531 (78%)
view
436 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/postg...tlr4/imports/postgresql
380:960 (41%)
384:964 (39%)
view
410 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/postg...tlr4/imports/postgresql
478:944 (24%)
473:939 (24%)
view
347 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/postg...tlr4/imports/postgresql
89:440 (20%)
90:441 (20%)
view
331 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/postg...tlr4/imports/postgresql
156:597 (66%)
152:593 (68%)
view
329 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
19:347 (99%)
19:347 (99%)
view
329 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
19:347 (99%)
19:347 (99%)
view
329 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
19:347 (99%)
19:347 (99%)
view
321 x 2 parser/sql/dialect/postg...tlr4/imports/postgresql
parser/sql/dialect/sql92...in/antlr4/imports/sql92
1:424 (66%)
1:424 (78%)
view
320 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/postg...tlr4/imports/postgresql
962:1347 (18%)
962:1347 (18%)
view
313 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/postg...tlr4/imports/postgresql
964:1378 (29%)
964:1378 (28%)
view
307 x 2 parser/sql/dialect/sql92...in/antlr4/imports/sql92
parser/sql/dialect/sqlse...ntlr4/imports/sqlserver
128:537 (74%)
132:541 (58%)
view
283 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
49:331 (90%)
41:323 (92%)
view
250 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
18:267 (100%)
18:267 (100%)
view
250 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
18:267 (100%)
18:267 (96%)
view
235 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
153:387 (33%)
161:395 (59%)
view
235 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
153:387 (33%)
161:395 (59%)
view
235 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
153:387 (43%)
161:395 (59%)
view
235 x 2 infra/common/src/main/re...ma/opengauss/pg_catalog
infra/common/src/main/re...ma/opengauss/pg_catalog
153:387 (43%)
161:395 (59%)
view
234 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
18:251 (100%)
18:251 (100%)
view
234 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
18:251 (100%)
18:251 (100%)
view
225 x 2 infra/common/src/main/resources/schema/mysql/sys
infra/common/src/main/resources/schema/mysql/sys
19:243 (99%)
19:243 (99%)
view
223 x 2 parser/sql/dialect/postg...tlr4/imports/postgresql
parser/sql/dialect/sqlse...ntlr4/imports/sqlserver
128:424 (46%)
132:428 (42%)
view
218 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
18:235 (100%)
18:235 (100%)
view
208 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
28:235 (95%)
20:227 (99%)
view
205 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/sql92...in/antlr4/imports/sql92
156:428 (40%)
152:424 (49%)
view
205 x 2 parser/sql/dialect/openg...ntlr4/imports/opengauss
parser/sql/dialect/sqlse...ntlr4/imports/sqlserver
156:428 (40%)
156:428 (39%)
view
203 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
25:227 (96%)
25:227 (96%)
view
203 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
33:235 (93%)
25:227 (96%)
view
201 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
35:235 (92%)
27:227 (95%)
view
201 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
27:227 (95%)
27:227 (95%)
view
201 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
27:227 (95%)
27:227 (95%)
view
200 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
28:227 (95%)
20:219 (99%)
view
200 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
28:227 (95%)
20:219 (99%)
view
200 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
36:235 (91%)
20:219 (99%)
view
200 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
28:227 (95%)
20:219 (99%)
view
195 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
41:235 (89%)
57:251 (83%)
view
195 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
41:235 (83%)
33:227 (92%)
view
195 x 2 infra/common/src/main/re...esql/information_schema
infra/common/src/main/re...esql/information_schema
41:235 (89%)
57:251 (83%)
view
195 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
41:235 (83%)
33:227 (92%)
view
195 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
41:235 (89%)
41:235 (83%)
view
195 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
41:235 (83%)
25:219 (96%)
view
195 x 2 infra/common/src/main/re...auss/information_schema
infra/common/src/main/re...esql/information_schema
57:251 (83%)
41:235 (89%)
view
195 x 2 infra/common/src/main/re...ysql/performance_schema
infra/common/src/main/re...ysql/performance_schema
41:235 (83%)
33:227 (92%)
view
Duplicated Units
The list of top 50 duplicated units.
See data for all 144 unit duplicates...
Size#FoldersFilesLinesCode
31 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
316:348 
316:348 
view
28 x 2 parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
254:283 
369:398 
view
27 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
383:411 
383:411 
view
23 x 2 parser/sql/dialect/postg.../visitor/statement/type
parser/sql/dialect/openg.../visitor/statement/type
429:453 
346:370 
view
23 x 2 parser/sql/dialect/oracl...racle/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
500:524 
474:498 
view
22 x 2 parser/sql/dialect/postg.../visitor/statement/type
parser/sql/dialect/openg.../visitor/statement/type
158:183 
151:177 
view
22 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
291:314 
291:314 
view
20 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
489:510 
492:513 
view
20 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
1072:1093 
1108:1129 
view
19 x 2 parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
121:141 
206:226 
view
18 x 2 mode/type/cluster/core/s...stry/workerid/generator
mode/type/cluster/core/s...stry/workerid/generator
68:87 
67:86 
view
18 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
361:380 
361:380 
view
17 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
563:581 
566:584 
view
16 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
628:645 
631:648 
view
16 x 2 kernel/data-pipeline/dia...eline/postgresql/ingest
kernel/data-pipeline/dia...peline/opengauss/ingest
91:108 
89:106 
view
15 x 2 parser/sql/dialect/postg.../visitor/statement/type
parser/sql/dialect/openg.../visitor/statement/type
669:685 
531:547 
view
15 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
1283:1299 
1331:1347 
view
13 x 2 proxy/frontend/type/post...stgresql/authentication
proxy/frontend/type/open...pengauss/authentication
89:103 
101:115 
view
13 x 2 proxy/backend/type/mysql.../handler/admin/executor
proxy/backend/type/mysql.../handler/admin/executor
61:75 
61:75 
view
13 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
1019:1033 
1055:1069 
view
13 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
1056:1070 
1092:1106 
view
13 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
1162:1176 
1210:1224 
view
13 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
1178:1192 
1233:1247 
view
13 x 2 parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
230:244 
345:359 
view
12 x 2 features/mask/core/src/m.../mask/algorithm/replace
features/encrypt/core/sr.../encrypt/algorithm/like
58:71 
111:124 
view
12 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
672:685 
675:688 
view
12 x 2 parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
550:563 
675:688 
view
12 x 2 db-protocol/mysql/src/ma...row/column/value/string
db-protocol/mysql/src/ma...g/row/column/value/blob
51:64 
37:50 
view
11 x 2 proxy/backend/core/src/m...handler/distsql/rul/sql
proxy/backend/type/openg...opengauss/handler/admin
149:163 
106:120 
view
11 x 2 features/encrypt/distsql.../distsql/handler/update
features/encrypt/distsql.../distsql/handler/update
92:104 
88:100 
view
11 x 2 parser/sql/dialect/postg.../visitor/statement/type
parser/sql/dialect/openg.../visitor/statement/type
579:591 
466:478 
view
11 x 2 parser/sql/dialect/postg.../visitor/statement/type
parser/sql/dialect/openg.../visitor/statement/type
100:112 
93:105 
view
11 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
433:446 
436:449 
view
11 x 2 parser/sql/dialect/sql92.../visitor/statement/type
parser/sql/dialect/sqlse...erver/visitor/statement
426:438 
1224:1236 
view
11 x 2 kernel/metadata/core/src...sphere/metadata/factory
kernel/metadata/core/src...sphere/metadata/factory
72:84 
71:83 
view
10 x 2 infra/database/type/post...ql/metadata/data/loader
infra/database/type/open...ss/metadata/data/loader
167:179 
136:148 
view
10 x 2 mode/type/cluster/core/s...stry/process/subscriber
mode/type/cluster/core/s...stry/process/subscriber
92:103 
93:104 
view
10 x 2 features/sharding/core/s...ingsphere/sharding/rule
features/sharding/distsq...distsql/handler/checker
292:303 
260:271 
view
10 x 2 features/sharding/distsq.../distsql/handler/update
features/sharding/distsq.../distsql/handler/update
82:93 
82:93 
view
10 x 2 features/encrypt/core/sr.../rewrite/condition/impl
features/encrypt/core/sr.../rewrite/condition/impl
83:94 
75:86 
view
10 x 2 parser/sql/dialect/postg.../visitor/statement/type
parser/sql/dialect/openg.../visitor/statement/type
354:365 
281:292 
view
10 x 2 parser/sql/dialect/postg.../visitor/statement/type
parser/sql/dialect/openg.../visitor/statement/type
551:563 
438:450 
view
10 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
449:460 
452:463 
view
10 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
467:478 
470:481 
view
10 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
583:594 
586:597 
view
10 x 2 parser/sql/dialect/postg...resql/visitor/statement
parser/sql/dialect/openg...gauss/visitor/statement
1101:1112 
1137:1148 
view
10 x 3 parser/sql/dialect/oracl...racle/visitor/statement
parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
440:451 
299:310 
414:425 
view
10 x 2 parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
285:296 
400:411 
view
10 x 2 parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
417:428 
542:553 
view
10 x 3 parser/sql/dialect/sql92...sql92/visitor/statement
parser/sql/dialect/mysql...mysql/visitor/statement
parser/sql/dialect/sqlse...erver/visitor/statement
438:449 
912:923 
563:574 
view