Skip to content

Commit 0583876

Browse files
authored
Merge pull request #987 from tianlu-root/master
fix: function column casing bugfix
2 parents d5b75c1 + bed5169 commit 0583876

File tree

11 files changed

+22
-11
lines changed

11 files changed

+22
-11
lines changed

config/logback.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<configuration scan="true" scanPeriod="60 seconds" debug="false">
22

33
<property name="LOG_HOME" value="./logs"/>
4-
<property name ="SQL_LEVEL" value="DEBUG"/>
4+
<property name ="SQL_LEVEL" value="INFO"/>
55

66
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
77
<encoder>
@@ -39,10 +39,10 @@
3939
<appender-ref ref="root" />
4040
</root>
4141

42-
<logger name="datart.data.provider.jdbc.adapters" level="${SQL_LEVEL}">
42+
<logger name="datart.data.provider.jdbc.adapters" level="${SQL_LEVEL}" addtivity="false">
4343
<appender-ref ref="sql"/>
4444
</logger>
45-
<logger name="datart.data.provider.local.LocalDB" level="${SQL_LEVEL}">
45+
<logger name="datart.data.provider.local.LocalDB" level="${SQL_LEVEL}" addtivity="false">
4646
<appender-ref ref="sql"/>
4747
</logger>
4848

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-beta.1</version>
8+
<version>1.0.0-beta.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

data-providers/file-data-provider/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-beta.1</version>
8+
<version>1.0.0-beta.2</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

data-providers/http-data-provider/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-beta.1</version>
8+
<version>1.0.0-beta.2</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111

data-providers/jdbc-data-provider/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-beta.1</version>
8+
<version>1.0.0-beta.2</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

data-providers/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-beta.1</version>
8+
<version>1.0.0-beta.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

data-providers/src/main/java/datart/data/provider/calcite/SqlParserUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package datart.data.provider.calcite;
22

33
import datart.data.provider.calcite.parser.impl.SqlParserImpl;
4+
import org.apache.calcite.avatica.util.Casing;
45
import org.apache.calcite.avatica.util.Quoting;
56
import org.apache.calcite.sql.SqlDialect;
67
import org.apache.calcite.sql.SqlNode;
@@ -19,7 +20,10 @@ public static SqlNode parseSnippet(String snippet) throws SqlParseException {
1920
String sql = String.format(SELECT_SQL, snippet);
2021
SqlParser.Config config = SqlParser.config()
2122
.withParserFactory(SqlParserImpl.FACTORY)
23+
.withQuotedCasing(Casing.UNCHANGED)
24+
.withUnquotedCasing(Casing.UNCHANGED)
2225
.withConformance(SqlConformanceEnum.LENIENT)
26+
.withCaseSensitive(true)
2327
.withQuoting(Quoting.BRACKET);
2428
return SqlParser.create(sql, config).parseQuery();
2529

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<groupId>datart</groupId>
2020
<artifactId>datart-parent</artifactId>
2121
<packaging>pom</packaging>
22-
<version>1.0.0-beta.1</version>
22+
<version>1.0.0-beta.2</version>
2323

2424
<dependencies>
2525
<dependency>

security/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-beta.1</version>
8+
<version>1.0.0-beta.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

server/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-beta.1</version>
8+
<version>1.0.0-beta.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -70,6 +70,12 @@
7070
<groupId>org.springframework.boot</groupId>
7171
<artifactId>spring-boot-starter-oauth2-client</artifactId>
7272
</dependency>
73+
74+
<dependency>
75+
<groupId>org.springframework.boot</groupId>
76+
<artifactId>spring-boot-starter-data-ldap</artifactId>
77+
</dependency>
78+
7379
<dependency>
7480
<groupId>com.jayway.jsonpath</groupId>
7581
<artifactId>json-path</artifactId>

0 commit comments

Comments
 (0)