Commit 58d63f7 1 parent 01a98f0 commit 58d63f7 Copy full SHA for 58d63f7
File tree 3 files changed +364
-6
lines changed
3 files changed +364
-6
lines changed Original file line number Diff line number Diff line change 43
43
"prop-types" : " ^15.8.1" ,
44
44
"protobufjs" : " ^7.1.1" ,
45
45
"query-string" : " ^7.1.1" ,
46
+ "react-code-blocks" : " ^0.0.9-0" ,
46
47
"react-query" : " ^3.34.12" ,
47
48
"react-router-dom" : " 6" ,
48
49
"react-scripts" : " ^5.0.0" ,
Original file line number Diff line number Diff line change 6
6
EuiFlexGroup ,
7
7
EuiFlexItem ,
8
8
} from "@elastic/eui" ;
9
+ import { CopyBlock , atomOneDark } from "react-code-blocks" ;
9
10
import { feast } from "../../protos" ;
10
11
import { toDate } from "../../utils/timestamp" ;
11
12
@@ -61,6 +62,24 @@ const BatchSourcePropertiesView = (props: BatchSourcePropertiesViewProps) => {
61
62
</ EuiDescriptionListDescription >
62
63
</ React . Fragment >
63
64
) }
65
+ { batchSource . bigqueryOptions && (
66
+ < React . Fragment >
67
+ < EuiDescriptionListTitle > Source { batchSource . bigqueryOptions . table ? "Table" : "Query" } </ EuiDescriptionListTitle >
68
+ { batchSource . bigqueryOptions . table ? (
69
+ < EuiDescriptionListDescription >
70
+ { batchSource . bigqueryOptions . table }
71
+ </ EuiDescriptionListDescription >
72
+ ) : < CopyBlock
73
+ text = { batchSource . bigqueryOptions . query }
74
+ language = "sql"
75
+ showLineNumbers = { false }
76
+ theme = { atomOneDark }
77
+ wrapLines
78
+ />
79
+ }
80
+
81
+ </ React . Fragment >
82
+ ) }
64
83
{ batchSource . meta ?. latestEventTimestamp && (
65
84
< React . Fragment >
66
85
< EuiDescriptionListTitle > Latest Event</ EuiDescriptionListTitle >
You can’t perform that action at this time.
0 commit comments