You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/09/30 09:37:11 UTC
[GitHub] [druid] kfaraz commented on a diff in pull request #13159: Web console: fix DQT import
kfaraz commented on code in PR #13159:
URL: https://github.com/apache/druid/pull/13159#discussion_r984400843
##########
web-console/src/views/query-view/__snapshots__/query-view.spec.tsx.snap:
##########
@@ -160,79 +88,7 @@ exports[`QueryView matches snapshot with query 1`] = `
<ColumnTree
columnMetadataLoading={true}
defaultSchema="druid"
- defaultWhere={
- SqlComparison {
- "decorator": undefined,
- "keywords": Object {
- "op": ">=",
- },
- "lhs": SqlRef {
- "columnRefName": RefName {
- "name": "__time",
- "quotes": false,
- },
- "keywords": Object {},
- "namespaceRefName": undefined,
- "spacing": Object {},
- "tableRefName": undefined,
- "type": "ref",
- },
- "negated": false,
- "op": ">=",
- "rhs": SqlMulti {
- "args": SeparatedArray {
- "separators": Array [
- Separator {
- "left": " ",
- "right": " ",
- "separator": "-",
- },
- ],
- "values": Array [
- SqlFunction {
- "args": undefined,
- "decorator": undefined,
- "functionName": "CURRENT_TIMESTAMP",
- "keywords": Object {
- "functionName": "CURRENT_TIMESTAMP",
- },
- "spacing": Object {},
- "specialParen": "none",
- "type": "function",
- "whereClause": undefined,
- },
- SqlInterval {
- "intervalValue": SqlLiteral {
- "keywords": Object {},
- "spacing": Object {},
- "stringValue": "'1'",
- "type": "literal",
- "value": "1",
- },
- "keywords": Object {
- "interval": "INTERVAL",
- },
- "spacing": Object {
- "postInterval": " ",
- "postIntervalValue": " ",
- },
- "type": "interval",
- "unit": "DAY",
- },
- ],
- },
- "keywords": Object {},
- "op": "-",
- "spacing": Object {},
- "type": "multi",
- },
- "spacing": Object {
- "postOp": " ",
- "preOp": " ",
- },
- "type": "comparison",
- }
- }
+ defaultWhere={"__time >= CURRENT_TIMESTAMP - INTERVAL '1' DAY"}
Review Comment:
Neat! 😂
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org