Bug 1141162
| Summary: | Impala sorting | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Virtualization 6 | Reporter: | Filip Nguyen <fnguyen> |
| Component: | Teiid | Assignee: | Van Halbert <vhalbert> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.1.0 | CC: | dlesage, fnguyen, vhalbert |
| Target Milestone: | ER4 | Keywords: | QA-Closed |
| Target Release: | 6.1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
String sorting on Impala was inconsistent with that for other data sources. This has now been corrected to make it consistent.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-10 08:53:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Filip Nguyen
2014-09-12 11:21:38 UTC
That's an odd ordering. Are other types besides string affected as well? If so we can just turn off order by support. It seems to be problem only on String columns. I tried timestamp, char, int and all sort the same as e.g. postgre translator Correction, seems that impala puts NULLS at the end of the result. E.g. Select BQT1.SmallA.DateValue From BQT1.SmallA ORDER BY BQT1.SmallA.DateValue DESC returns: 1: 2000-02-19 2: 2000-02-18 3: 2000-02-17 4: 2000-02-16 5: 2000-02-15 6: 2000-02-14 7: 2000-02-13 8: 2000-02-12 9: 2000-02-11 10: 2000-02-10 11: 2000-02-09 12: 2000-02-07 13: 2000-02-06 14: 2000-02-05 15: 2000-02-04 16: 2000-02-03 17: 2000-02-02 18: 2000-02-01 19: 2000-01-31 20: 2000-01-30 21: 2000-01-29 22: 2000-01-28 23: 2000-01-27 24: 2000-01-26 25: 2000-01-25 26: 2000-01-24 27: 2000-01-22 28: 2000-01-21 29: 2000-01-20 30: 2000-01-19 31: 2000-01-18 32: 2000-01-17 33: 2000-01-16 34: 2000-01-15 35: 2000-01-14 36: 2000-01-13 37: 2000-01-12 38: 2000-01-11 39: 2000-01-10 40: 2000-01-09 41: 2000-01-08 42: 2000-01-06 43: 2000-01-05 44: 2000-01-04 45: 2000-01-03 46: 2000-01-02 47: 2000-01-01 48: null 49: null 50: null I take back the last comment. The reason nulls were at the end was because of the transformation that I use to extract the date right now before the conversion for timestamp is fixed. FYI: convert(PARSETIMESTAMP(convert(Source.smalla.DATEVALUE, string), 'yyyy-MM-dd hh:mm:ss'), date) AS DateValue, Steven Hawkins <shawkins> updated the status of jira TEIID-3134 to Resolved Commented into TEIID-3134 Steven Hawkins <shawkins> updated the status of jira TEIID-3134 to Closed |