Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
26ac55e2
Unverified
Commit
26ac55e2
authored
Nov 02, 2023
by
aiwenmo
Committed by
GitHub
Nov 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Feature-1709][core] Support use FlinkSQL CTE to preview data (#2482)
Co-authored-by:
wenmo
<
32723967+wenmo@users.noreply.github.com
>
parent
523baf51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletion
+5
-1
ResultBuilder.java
...re/src/main/java/org/dinky/data/result/ResultBuilder.java
+1
-0
Explainer.java
dinky-core/src/main/java/org/dinky/explainer/Explainer.java
+1
-0
SqlType.java
dinky-executor/src/main/java/org/dinky/parser/SqlType.java
+2
-0
index.tsx
...web/src/pages/DataStudio/BottomContainer/Result/index.tsx
+1
-1
No files found.
dinky-core/src/main/java/org/dinky/data/result/ResultBuilder.java
View file @
26ac55e2
...
...
@@ -39,6 +39,7 @@ public interface ResultBuilder {
String
timeZone
)
{
switch
(
operationType
)
{
case
SELECT:
case
WITH:
return
new
SelectResultBuilder
(
id
,
maxRowNum
,
isChangeLog
,
isAutoCancel
,
timeZone
);
case
SHOW:
case
DESC:
...
...
dinky-core/src/main/java/org/dinky/explainer/Explainer.java
View file @
26ac55e2
...
...
@@ -126,6 +126,7 @@ public class Explainer {
statementList
.
add
(
statement
);
}
else
if
(
operationType
.
equals
(
SqlType
.
INSERT
)
||
operationType
.
equals
(
SqlType
.
SELECT
)
||
operationType
.
equals
(
SqlType
.
WITH
)
||
operationType
.
equals
(
SqlType
.
SHOW
)
||
operationType
.
equals
(
SqlType
.
DESCRIBE
)
||
operationType
.
equals
(
SqlType
.
DESC
)
...
...
dinky-executor/src/main/java/org/dinky/parser/SqlType.java
View file @
26ac55e2
...
...
@@ -63,6 +63,8 @@ public enum SqlType {
CTAS
(
"CTAS"
,
"^CREATE\\s.*AS\\sSELECT.*$"
),
WITH
(
"WITH"
,
"^WITH.*"
),
UNKNOWN
(
"UNKNOWN"
,
"^UNKNOWN.*"
);
private
String
type
;
...
...
dinky-web/src/pages/DataStudio/BottomContainer/Result/index.tsx
View file @
26ac55e2
...
...
@@ -147,7 +147,7 @@ const Result = (props: any) => {
id
:
current
.
id
});
const
historyData
=
res
.
data
;
if
(
'2'
==
historyData
.
status
)
{
if
(
historyData
&&
'2'
==
historyData
.
status
)
{
const
historyId
=
historyData
.
id
;
const
tableData
=
await
handleGetOption
(
'api/studio/getJobData'
,
'Get Data'
,
{
jobId
:
historyId
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment