Commit a312dcd
Refactor Parenthesed SelectBody and FromItem (#1754)
* Fixes #1684: Support CREATE MATERIALIZED VIEW with AUTO REFRESH
Support parsing create view statements in Redshift with AUTO REFRESH
option.
* Reduce cyclomatic complexity in CreateView.toString
Extract adding the force option into a dedicated method resulting in the
cyclomatic complexity reduction of the CreateView.toString method.
* Enhanced Keywords
Add Keywords and document, which keywords are allowed for what purpose
* Fix incorrect tests
* Define Reserved Keywords explicitly
Derive All Keywords from Grammar directly
Generate production for Object Names (semi-) automatically
Add parametrized Keyword Tests
* Fix test resources
* Adjust Gradle to JUnit 5
Parallel Test execution
Gradle Caching
Explicitly request for latest JavaCC 7.0.10
* Do not mark SpeedTest for concurrent execution
* Remove unused imports
* Adjust Gradle to JUnit 5
Parallel Test execution
Gradle Caching
Explicitly request for latest JavaCC 7.0.10
* Do not mark SpeedTest for concurrent execution
* Remove unused imports
* Sphinx Documentation
Update the MANTICORE Sphinx Theme, but ignore it in GIT
Add the content to the Sphinx sites
Add a Gradle function to derive Stable and Snapshot version from GIT Tags
Add a Gradle GIT change task
Add a Gradle sphinx task
Add a special Test case for illustrating the use of JSQLParser
* doc: request for `Conventional Commit` messages
* feat: make important Classes Serializable
Implement Serializable for persisting via ObjectOutputStream
* chore: Make Serializable
* doc: Better integration of the RR diagrams
- apply neutral Sphinx theme
- insert the RR diagrams into the sphinx sources
- better documentation on Gradle dependencies
- link GitHub repository
* Merge
* feat: Oracle Alternative Quoting
- add support for Oracle Alternative Quoting e.g. `q'(...)'`
- fixes #1718
- add a Logo and FavIcon to the Website
- document recent changes on Quoting/Escaping
- add an example on building SQL from Java
- rework the README.md, promote the Website
- add Spotless Formatter, using Google Java Style (with Tab=4 Spaces)
* style: Appease PMD/Codacy
* doc: fix the issue template
- fix the issue template
- fix the -SNAPSHOT version number
* Update issue templates
* Update issue templates
* feat: Support more Statement Separators
- `GO`
- Slash `/`
- Two empty lines
* feat: FETCH uses EXPRESSION
- `FETCH` uses `EXPRESSION` instead of SimpleJDBCParameter only
- Visit/Accept `FETCH` `EXPRESSION` instead of `append` to String
- Visit/Accept `OFFSET` `EXPRESSION` instead of `append` to String
- Gradle: remove obsolete/incompatible `jvmArgs` from Test()
* style: apply Spotless
* test: commit missing test
* fix: JSon Operator can use Simple Function
Supports `Function() ->> Literal` (although `Function()` would not allow Nested Expression Parameters)
fixes #1571
* style: Reformat changed files and headers
* style: Remove unused variable
* feat: Add support for Hangul "\uAC00"-"\uD7A3"
fixes #1747
* style: expose `SetStatement` key-value list
fixes #1746
* style: Appease PMD/Codacy
* feat: `ConflictTarget` allows multiple `IndexColumnNames`
fixes #1749
fixes #1633
fixes #955
* doc: fix reference in the Java Doc
* build: better Upload Groovy Task
* feat: ParenthesedSelectBody and ParenthesedFromItem
- First properly working version
- Work in progress, 13 tests failing
* feat: ParenthesedSelectBody and ParenthesedFromItem
- delete unneeded ParenthesedJoin
- rename ParenthesisFromItem into ParenthesedFromItem
* feat: ParenthesedSelectBody and ParenthesedFromItem
- fix `NULLS FIRST` and `NULLS LAST`
* feat: ParenthesedSelectBody and ParenthesedFromItem
- fix Oracle Hints
* feat: ParenthesedSelectBody and ParenthesedFromItem
- parse `SetOperation` only after a (first plain) SelectBody has found, this fixes the performance issue
- one more special Oracle Test succeeds
- 5 remaining test failures
* feat: ParenthesedSelectBody and ParenthesedFromItem
- extract `OrderByElements` into `SelectBody`
- one more special Oracle Test succeeds
- all tests succeed
* style: Appease PMD/Codacy
* style: Appease PMD/Codacy
* feat: Refactor SelectBody implementations
- `SelectBody` implements `FromItem`
- get rid of `SubSelect` and `SpecialSubSelect`
- `Merge` can use `FromItem` instead of `SubSelect` or `Table`
- `LateralSubSelect` extends `ParenthesedSelectBody` directly
- Simplify the `Select` statement, although it is still redundant since `SelectBody` also could implement `Statement` directly
- `WithItem` can use `SelectBody` directly, which allows for nested `WithItems`
BREAKING-CHANGE: Lots of redundant methods and intermediate removed
* feat: Refactor SelectBody implementations
- `SelectBody` implements `Statement` and so makes `Select` redundant
- get rid of `ValuesList`
- refactor `ValuesStatement` into `Values` which just implements `SelectBody` (and becomes a `Statement` and a `FromItem`), move to `select` package
BREAKING-CHANGE: Lots of redundant methods and intermediate removed
* style: Code cleanup
- remove 3 unused/obsolete productions
- appease PMD/Codacy
* feat: Merge `SelectBody` into `Select` Statement
- former `SelectBody` implements `Statement` and so becomes `Select`
- this reduces the AST by 1 hierarchy level
* style: Remove unused import
* test: @disabled invalid Test
* style: Appease PMD/Codacy
* test: Add a SubSelect Parsing Test
---------
Co-authored-by: zaza <[email protected]>1 parent 0e98333 commit a312dcd
File tree
108 files changed
+4105
-5009
lines changed- config/formatter
- src
- main
- java/net/sf/jsqlparser
- expression
- operators/relational
- parser
- feature
- statement
- create/view
- insert
- merge
- select
- update
- util
- deparser
- validation/validator
- jjtree/net/sf/jsqlparser/parser
- site/sphinx
- test
- java/net/sf/jsqlparser
- expression
- mysql
- schema
- statement
- builder
- create
- insert
- merge
- select
- upsert
- values
- test
- util
- deparser
- validation/validator
- resources/net/sf/jsqlparser/statement/select/oracle-tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
108 files changed
+4105
-5009
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 34 | + | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 80 | + | |
| 81 | + | |
85 | 82 | | |
86 | 83 | | |
87 | 84 | | |
| |||
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
13 | 24 | | |
14 | 25 | | |
15 | 26 | | |
16 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
17 | 47 | | |
18 | 48 | | |
19 | 49 | | |
20 | | - | |
| 50 | + | |
| 51 | + | |
21 | 52 | | |
22 | 53 | | |
23 | 54 | | |
| |||
69 | 100 | | |
70 | 101 | | |
71 | 102 | | |
72 | | - | |
| 103 | + | |
73 | 104 | | |
74 | 105 | | |
75 | 106 | | |
| |||
93 | 124 | | |
94 | 125 | | |
95 | 126 | | |
96 | | - | |
| 127 | + | |
97 | 128 | | |
98 | | - | |
| 129 | + | |
99 | 130 | | |
100 | 131 | | |
101 | 132 | | |
| |||
194 | 225 | | |
195 | 226 | | |
196 | 227 | | |
| 228 | + | |
| 229 | + | |
197 | 230 | | |
Lines changed: 67 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
13 | 24 | | |
14 | 25 | | |
15 | 26 | | |
16 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
17 | 51 | | |
18 | 52 | | |
19 | 53 | | |
20 | 54 | | |
21 | 55 | | |
22 | 56 | | |
23 | 57 | | |
| 58 | + | |
24 | 59 | | |
25 | 60 | | |
26 | 61 | | |
| 62 | + | |
27 | 63 | | |
28 | 64 | | |
29 | 65 | | |
30 | | - | |
31 | 66 | | |
32 | 67 | | |
33 | 68 | | |
34 | 69 | | |
35 | | - | |
| 70 | + | |
| 71 | + | |
36 | 72 | | |
37 | 73 | | |
38 | 74 | | |
| |||
237 | 273 | | |
238 | 274 | | |
239 | 275 | | |
240 | | - | |
| 276 | + | |
241 | 277 | | |
242 | | - | |
243 | | - | |
| 278 | + | |
| 279 | + | |
244 | 280 | | |
245 | 281 | | |
246 | 282 | | |
247 | | - | |
| 283 | + | |
248 | 284 | | |
249 | | - | |
250 | | - | |
| 285 | + | |
| 286 | + | |
251 | 287 | | |
252 | 288 | | |
253 | 289 | | |
| |||
274 | 310 | | |
275 | 311 | | |
276 | 312 | | |
277 | | - | |
| 313 | + | |
278 | 314 | | |
279 | 315 | | |
280 | 316 | | |
| |||
356 | 392 | | |
357 | 393 | | |
358 | 394 | | |
359 | | - | |
360 | | - | |
| 395 | + | |
361 | 396 | | |
362 | 397 | | |
363 | 398 | | |
| |||
502 | 537 | | |
503 | 538 | | |
504 | 539 | | |
505 | | - | |
506 | | - | |
| 540 | + | |
507 | 541 | | |
508 | 542 | | |
509 | | - | |
510 | | - | |
| 543 | + | |
511 | 544 | | |
512 | 545 | | |
513 | | - | |
514 | | - | |
| 546 | + | |
515 | 547 | | |
516 | 548 | | |
517 | 549 | | |
| |||
526 | 558 | | |
527 | 559 | | |
528 | 560 | | |
529 | | - | |
| 561 | + | |
530 | 562 | | |
531 | | - | |
| 563 | + | |
532 | 564 | | |
533 | 565 | | |
534 | 566 | | |
| |||
557 | 589 | | |
558 | 590 | | |
559 | 591 | | |
560 | | - | |
561 | | - | |
| 592 | + | |
562 | 593 | | |
563 | 594 | | |
564 | | - | |
565 | | - | |
| 595 | + | |
566 | 596 | | |
567 | 597 | | |
568 | 598 | | |
| |||
617 | 647 | | |
618 | 648 | | |
619 | 649 | | |
620 | | - | |
| 650 | + | |
621 | 651 | | |
622 | 652 | | |
623 | | - | |
| 653 | + | |
624 | 654 | | |
625 | | - | |
| 655 | + | |
626 | 656 | | |
627 | 657 | | |
628 | 658 | | |
629 | 659 | | |
630 | 660 | | |
631 | 661 | | |
632 | | - | |
| 662 | + | |
633 | 663 | | |
634 | 664 | | |
635 | 665 | | |
| |||
638 | 668 | | |
639 | 669 | | |
640 | 670 | | |
641 | | - | |
| 671 | + | |
642 | 672 | | |
643 | 673 | | |
644 | 674 | | |
| |||
649 | 679 | | |
650 | 680 | | |
651 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
652 | 687 | | |
653 | | - | |
654 | | - | |
| 688 | + | |
| 689 | + | |
655 | 690 | | |
0 commit comments