mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
Support multi column results with using mongo query runner (#6558)
* Support multi column results with using mongo query runner * format Signed-off-by: del-zhenwu <lizhenxiang@pjlab.org.cn> * Update test_mongodb.py update unit test case: nested dict for mongodb runner * Update test_mongodb.py * fix formatting --------- Signed-off-by: del-zhenwu <lizhenxiang@pjlab.org.cn> Co-authored-by: del-zhenwu <dele.zhenwu@gmail.com> Co-authored-by: del-zhenwu <lizhenxiang@pjlab.org.cn>
This commit is contained in:
@@ -141,7 +141,7 @@ class TestMongoResults(TestCase):
|
||||
"column": 2,
|
||||
"column2": "test",
|
||||
"column3": "hello",
|
||||
"nested": {"a": 2, "b": "str2", "c": "c"},
|
||||
"nested": {"a": 2, "b": "str2", "c": "c", "d": {"e": 3}},
|
||||
},
|
||||
]
|
||||
|
||||
@@ -157,6 +157,7 @@ class TestMongoResults(TestCase):
|
||||
"nested.a": 2,
|
||||
"nested.b": "str2",
|
||||
"nested.c": "c",
|
||||
"nested.d.e": 3,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user