dosubot[bot] commented on issue #38340:
URL: https://github.com/apache/superset/issues/38340#issuecomment-3983473609

   <!-- Answer -->
   This is a known bug that was recently fixed! The issue is tracked in 
[#37520](https://github.com/apache/superset/issues/37520) and was resolved in 
[PR #37521](https://github.com/apache/superset/pull/37521), merged on February 
20, 2026.
   
   **Root cause**: When server-side pagination is enabled, the frontend passes 
the display label (e.g., "Id") in the orderby clause, but the backend couldn't 
resolve this label back to the underlying SQL expression ("CustomerID"). This 
causes the "Unknown column used in orderby" error.
   
   **Workaround** (if you can't upgrade): Disable server-side pagination 
temporarily—sorting will work client-side instead.
   
   You may also be interested in the related issue 
[#38339](https://github.com/apache/superset/issues/38339), which describes the 
same problem affecting search functionality after renaming columns.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/0bd06f1a-06b2-4dee-b0b9-995899ac60ed?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/0bd06f1a-06b2-4dee-b0b9-995899ac60ed?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/0bd06f1a-06b2-4dee-b0b9-995899ac60ed?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/0bd06f1a-06b2-4dee-b0b9-995899ac60ed?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0bd06f1a-06b2-4dee-b0b9-995899ac60ed?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/0bd06f1a-06b2-4dee-b0b9-995899ac60ed?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0bd06f1a-06b2-4dee-b0b9-995899ac60ed?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20bug%20that%20was%20recently%20fixed%21%20The%20issue%20is%20tracked%20in%20%5B%2337520%5D%28https%3A//github.com/apache/superset/issues/37520%29%20and%20was%20resolved%20in%20%5BPR%20%2337521%5D%28https%3A//github.com/apache/superset/pull/37521%29%2C%20merged%20on%20February%2020%2C%202026.%0A%0A%2A%2ARoot%20cause%2A%2A%3A%20When%20server-side%20pagination%20is%20enabled%2C%20the%20frontend%20passes%20the%20display%20label%20%28e.g.%2C%20%22Id%22%29%20in%20the%20orderby%20clause%2C%20but%20the%20backend%20couldn%27t%20resolve%20this%20label%20back%20to%20the%20underlying%20SQL%20expression%20%28%22CustomerID%22%29.%20This%20causes%20the%20%22Unknown%20column%20used%20in%20orderby%22%20error.%0A%0A%2A%2AWorkaround%2A%2A%20%28
 
if%20you%20can%27t%20upgrade%29%3A%20Disable%20server-side%20pagination%20temporarily%E2%80%94sorting%20will%20work%20client-side%20instead.%0A%0AYou%20may%20also%20be%20interested%20in%20the%20related%20issue%20%5B%2338339%5D%28https%3A//github.com/apache/superset/issues/38339%29%2C%20which%20describes%20the%20same%20problem%20affecting%20search%20functionality%20after%20renaming%20columns.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/38340)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to