This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 32d25ab0a6 UI: add error code to sql exceptions (#11526)
32d25ab0a6 is described below
commit 32d25ab0a6677798fe3f0c56228c5eb0c2acf3c0
Author: Jayesh Choudhary <[email protected]>
AuthorDate: Wed Sep 6 20:39:40 2023 +0530
UI: add error code to sql exceptions (#11526)
---
pinot-controller/src/main/resources/app/pages/Query.tsx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/pinot-controller/src/main/resources/app/pages/Query.tsx
b/pinot-controller/src/main/resources/app/pages/Query.tsx
index 55e7ac2944..dafed72eef 100644
--- a/pinot-controller/src/main/resources/app/pages/Query.tsx
+++ b/pinot-controller/src/main/resources/app/pages/Query.tsx
@@ -20,7 +20,7 @@
import React, { useEffect, useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
-import { Grid, Checkbox, Button, FormControl, Input, InputLabel, Box } from
'@material-ui/core';
+import { Grid, Checkbox, Button, FormControl, Input, InputLabel, Box,
Typography } from '@material-ui/core';
import Alert from '@material-ui/lab/Alert';
import FileCopyIcon from '@material-ui/icons/FileCopy';
import { SqlException, TableData } from 'Models';
@@ -558,12 +558,15 @@ const QueryPage = () => {
</Alert>
)}
- {resultError && typeof resultError === "object" &&
resultError.length && (
+ {resultError && typeof resultError === "object" &&
resultError.length > 0 && (
<>
{
resultError.map((error) => (
<Box style={{paddingBottom: "16px"}}>
- <Alert className={classes.sqlError}
severity="error">{error.message}</Alert>
+ <Alert className={classes.sqlError} severity="error">
+ <Typography variant="body2">Error Code:
{error.errorCode}</Typography>
+ {error.message}
+ </Alert>
</Box>
))
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]