Comments (3)
@sfirke can you assign this task to me.
My MR
#28268
from superset.
Is this bug? Or unsupported? If it's a bug, I would like to fix it.
Can some help me to point serialization code. I have tried debugging, but not able to find that due to missing of stack in catch and throw.
For this "Unserializable object [2022-06-08 15:17:43.554000+00:00, 2022-06-09 15:17:49.528000+00:00] of type <class 'psycopg2._range.DateTimeTZRange'>" only message has been captured and thrown but its missing stack trace. This is coming as errors of data object from get_sql_query_results task.
superset/superset/sqllab/sql_json_executer.py
Line 110 in 76d897e
I have done dump of data object, unfortunately on errors it only on contains error message but not stacktrace
Dump of data object at L110
superset_app | 2024-04-28 02:05:25,134:INFO:superset.sqllab.sql_json_executer:{'query_id': 25, 'status': 'failed', 'error': "Unserializable object [2023-04-27 08:00:00+00:00, 2023-04-27 10:00:00+00:00) of type <class 'psycopg2._range.DateTimeTZRange'>", 'errors': [{'message': "Unserializable object [2023-04-27 08:00:00+00:00, 2023-04-27 10:00:00+00:00) of type <class 'psycopg2._range.DateTimeTZRange'>", 'error_type': <SupersetErrorType.GENERIC_DB_ENGINE_ERROR: 'GENERIC_DB_ENGINE_ERROR'>, 'level': <ErrorLevel.ERROR: 'error'>, 'extra': {'engine_name': 'PostgreSQL', 'issue_codes': [{'code': 1002, 'message': 'Issue 1002 - The database returned an unexpected error.'}]}}]}
from superset.
Able to extract stacktrace - its issue with converting numpy to pyArray
superset_app | 2024-04-29 17:26:16,337:ERROR:superset.result_set:Could not convert DateTimeTZRange(datetime.datetime(2023, 4, 27, 8, 0, tzinfo=datetime.timezone.utc), datetime.datetime(2023, 4, 27, 10, 0, tzinfo=datetime.timezone.utc), '[)') with type DateTimeTZRange: did not recognize Python value type when inferring an Arrow data type
superset_app | Traceback (most recent call last):
superset_app | File "/app/superset/result_set.py", line 141, in __init__
superset_app | pa_data.append(pa.array(array[column].tolist()))
superset_app | File "pyarrow/array.pxi", line 344, in pyarrow.lib.array
superset_app | File "pyarrow/array.pxi", line 42, in pyarrow.lib._sequence_to_array
superset_app | File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
superset_app | File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
from superset.
Related Issues (20)
- Logarithmic Axis in Apache Superset Charts
- Adjusting Font Size of Legend, Axes, and Value Labels in Apache Superset Dashboard HOT 1
- Dashboards should be loaded with current user access rights, not with dashboard owner's access rights HOT 9
- [ENABLE_TEMPLATE_PROCESSING] BaseTemplateProcessor interface (process_template) is misused HOT 1
- Helm installation bug: "Deployment is not ready: superset/superset-worker" HOT 1
- Not able to enable DASHBOARD_RBAC in helm chart ? HOT 4
- Helm: import_datasources.yaml - 'TypeError: 'str' object does not support item deletion' HOT 4
- Superset Kubernetes documentation resource offline HOT 4
- Add Missing Stacktrace information on errors, SQL lab query execution HOT 1
- Hiding Force refresh in Dashboard HOT 6
- "There was an error connecting to the database" ... and general database connection woes! HOT 1
- Can't enter commas into database configuration setup
- Slider step size is incorrect in some cases
- Elements of markdown not supported by Text layout Element HOT 5
- Error is not precise when 2 database connexions use the same display name HOT 2
- Filter / Column of Dataset HOT 1
- Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 HOT 15
- Can not Connect to AWS Redis Serverless HOT 4
- [SIP-129] POC - Real-time Dashboards powered by data streams HOT 2
- Drag and drop of metrics in chart interface does not allow movement of order of metrics once placed (was previously able) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.