Skip to content

Commit

Permalink
remove sqlCommentParseEnabled config in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
TherChenYang committed Dec 28, 2023
1 parent 68f29b0 commit f440f80
Show file tree
Hide file tree
Showing 20 changed files with 2 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
"name":"org.apache.shardingsphere.parser.yaml.config.YamlSQLParserRuleConfiguration",
"allDeclaredFields":true,
"queryAllPublicMethods":true,
"methods":[{"name":"<init>","parameterTypes":[] }, {"name":"setParseTreeCache","parameterTypes":["org.apache.shardingsphere.parser.yaml.config.YamlSQLParserCacheOptionRuleConfiguration"] }, {"name":"setSqlCommentParseEnabled","parameterTypes":["boolean"] }, {"name":"setSqlStatementCache","parameterTypes":["org.apache.shardingsphere.parser.yaml.config.YamlSQLParserCacheOptionRuleConfiguration"] }]
"methods":[{"name":"<init>","parameterTypes":[] }, {"name":"setParseTreeCache","parameterTypes":["org.apache.shardingsphere.parser.yaml.config.YamlSQLParserCacheOptionRuleConfiguration"] }, {"name":"setSqlStatementCache","parameterTypes":["org.apache.shardingsphere.parser.yaml.config.YamlSQLParserCacheOptionRuleConfiguration"] }]
},
{
"condition":{"typeReachable":"org.apache.shardingsphere.infra.yaml.config.shortcut.YamlRuleConfigurationShortcuts"},
Expand All @@ -575,7 +575,7 @@
"condition":{"typeReachable":"org.apache.shardingsphere.parser.yaml.swapper.NewYamlSQLParserRuleConfigurationSwapper"},
"name":"org.apache.shardingsphere.parser.yaml.config.YamlSQLParserRuleConfiguration",
"allDeclaredFields":true,
"methods":[{"name":"getParseTreeCache","parameterTypes":[] }, {"name":"getSqlStatementCache","parameterTypes":[] }, {"name":"isSqlCommentParseEnabled","parameterTypes":[] }]
"methods":[{"name":"getParseTreeCache","parameterTypes":[] }, {"name":"getSqlStatementCache","parameterTypes":[] }]
},
{
"condition":{"typeReachable":"org.apache.shardingsphere.infra.util.yaml.YamlEngine"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ sqlStatementCacheDefinition
: SQL_STATEMENT_CACHE LP_ cacheOption RP_
;

sqlCommentParseEnabled
: TRUE | FALSE
;

cacheOption
: (INITIAL_CAPACITY EQ_ initialCapacity)? (COMMA_? MAXIMUM_SIZE EQ_ maximumSize)?
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,3 @@ rules:
tables:
- t_broadcast_table
- t_broadcast_table_for_ddl

- !SQL_PARSER
sqlCommentParseEnabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ authority:
type: ALL_PERMITTED

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
Expand Down
3 changes: 0 additions & 3 deletions test/e2e/sql/src/test/resources/env/scenario/tbl/rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ sqlFederation:
executionPlanCache:
initialCapacity: 2000
maximumSize: 65535

sqlParser:
sqlCommentParseEnabled: true

props:
sql-show: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import lombok.Setter;
import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.AbstractExpectedIdentifierSQLSegment;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

/**
Expand All @@ -31,9 +30,6 @@
@Setter
public final class ExpectedSQLParserRule extends AbstractExpectedIdentifierSQLSegment {

@XmlAttribute(name = "sql-comment-parse-enabled")
private boolean sqlCommentParseEnabled;

@XmlElement(name = "parse-tree-cache")
private ExpectedCacheOption parseTreeCache;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ rules:
defaultShadowAlgorithmName: sql-hint-algorithm

sqlParser:
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 128
maximumSize: 1024
Expand Down

0 comments on commit f440f80

Please sign in to comment.