mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
[SQL Lab] Async query results serialization with MessagePack and PyArrow (#8069)
* Add support for msgpack results_backend serialization * Serialize DataFrame with PyArrow rather than JSON * Adjust dependencies, de-lint * Add tests for (de)serialization methods * Add MessagePack config info to Installation docs * Enable msgpack/arrow serialization by default * [Fix] Prevent msgpack serialization on synchronous queries * Add type annotations
This commit is contained in:
committed by
Maxime Beauchemin
parent
56566c2645
commit
7595d9e5fd
@@ -47,7 +47,7 @@ from superset.utils.core import (
|
||||
setup_cache,
|
||||
validate_json,
|
||||
zlib_compress,
|
||||
zlib_decompress_to_string,
|
||||
zlib_decompress,
|
||||
)
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ class UtilsTestCase(unittest.TestCase):
|
||||
def test_zlib_compression(self):
|
||||
json_str = '{"test": 1}'
|
||||
blob = zlib_compress(json_str)
|
||||
got_str = zlib_decompress_to_string(blob)
|
||||
got_str = zlib_decompress(blob)
|
||||
self.assertEquals(json_str, got_str)
|
||||
|
||||
@patch("superset.utils.core.to_adhoc", mock_to_adhoc)
|
||||
|
||||
Reference in New Issue
Block a user