diff --git a/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx b/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx
index 2297f8ff684d8..5bb628dd61350 100644
--- a/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx
+++ b/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx
@@ -115,6 +115,7 @@ const RunQueryActionButton = ({
name="caret-down"
/>
),
+ trigger: 'click',
}
: { buttonStyle: btnStyle })}
>
diff --git a/superset-frontend/src/SqlLab/components/SqlEditor.jsx b/superset-frontend/src/SqlLab/components/SqlEditor.jsx
index 90e2af8521d97..b4f7057b806e3 100644
--- a/superset-frontend/src/SqlLab/components/SqlEditor.jsx
+++ b/superset-frontend/src/SqlLab/components/SqlEditor.jsx
@@ -28,10 +28,7 @@ import Split from 'react-split';
import { t, styled, supersetTheme } from '@superset-ui/core';
import debounce from 'lodash/debounce';
import throttle from 'lodash/throttle';
-<<<<<<< HEAD
-=======
import StyledModal from 'src/common/components/Modal';
->>>>>>> 0e64ceb2ad710a2906a65a0e6dfe63fe93b76d57
import Mousetrap from 'mousetrap';
import { Tooltip } from 'src/common/components/Tooltip';
@@ -108,7 +105,7 @@ const LimitSelectStyled = styled.span`
`;
const StyledToolbar = styled.div`
- padding: 10px 10px 5px 10px;
+ padding: ${({ theme }) => theme.gridUnit * 2}px;
background-color: @lightest;
display: flex;
justify-content: space-between;
@@ -393,6 +390,10 @@ class SqlEditor extends React.PureComponent {
}
}
+ convertToNumWithSpaces(num) {
+ return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1 ');
+ }
+
startQuery(ctas = false, ctas_method = CtasEnum.TABLE) {
const qe = this.props.queryEditor;
const query = {
@@ -544,7 +545,7 @@ class SqlEditor extends React.PureComponent {