-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drill by pagination does not work with Elasticsearch #24563
Comments
Is this still an issue in Superset 3.x? I don't have Elasticsearch to test :/ |
This is still an issue in 4.0.0rc1 The error thrown when scrolling forward to the next page is the same as in the opening comment. |
Thanks for that info. Since nobody I know has elasticsearch to test/debug/investigate with, please feel free to do some digging and open a PR if you and/or your team feel capable of doing so. |
Is there any fix available for this. I am also facing same issue when click on pagination in drill to details page. Currently i am using superset version 4.0.2 Error: Error (parsing_exception): {'error': {'root_cause': [{'type': 'parsing_exception', 'reason': "line 45:1: mismatched input 'OFFSET' expecting "}], 'type': 'parsing_exception', 'reason': "line 45:1: mismatched input 'OFFSET' expecting ", 'caused_by': {'type': 'input_mismatch_exception', 'reason': None}}, 'status': 400} |
@ambarishp I've researched this issue and came to the conclusion that pagination of result sets is not supported by Elastic. Elastic SQL does not support the OFFSET clause and the only option it provides is cursor based pagination which only allows you to scroll forward by one page at a time (see https://discuss.elastic.co/t/how-to-use-pagination-in-elastic-search-sql/191135 and elastic/elasticsearch#31549). This is insufficient in the "Drill to details" scenario as Superset allows to skip pages as well as return to previous pages. I am not sure on how to proceed with this as throwing above error is not an acceptable solution either. Maybe @rusackas can chime in here? |
A clear and concise description of what the bug is.
Expected results
Next set of details as per drill-by dimension
Actual results
Error: Error (parsing_exception): {'error': {'root_cause': [{'type': 'parsing_exception', 'reason': "line 64:1: mismatched input 'OFFSET' expecting "}], 'type': 'parsing_exception', 'reason': "line 64:1: mismatched input 'OFFSET' expecting ", 'caused_by': {'type': 'input_mismatch_exception', 'reason': None}}, 'status': 400}
Screenshots
N/A
Environment
DASHBOARD_NATIVE_FILTERS=True
DASHBOARD_CROSS_FILTERS=True
DASHBOARD_NATIVE_FILTERS_SET=True
DASHBOARD_FILTERS_EXPERIMENTAL=True
ALERT_REPORTS=True
OMNIBAR=True
DASHBOARD_RBAC=True
ENABLE_EXPLORE_DRAG_AND_DROP=True
ENABLE_TEMPLATE_PROCESSING=True
VERSIONED_EXPORT=True
THUMBNAILS=True
ENABLE_JAVASCRIPT_CONTROLS=True
DRILL_TO_DETAIL=True
GENERIC_CHART_AXES=True
USE_ANALAGOUS_COLORS=True
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
N/A
The text was updated successfully, but these errors were encountered: