Experiencing sorting problems with bigint columns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 09:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 10:45 PM - edited 06-11-2025 10:47 PM
Can you send across schema of table using describe command.
Also at runtime cast it to bigint and then check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 10:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 10:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 11:03 PM
Can you cast explicitly to bigint and check, it's kinda strange
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 11:12 PM
When I use CAST, it returns the data type as BIGINT, which is expected. However, if I'm reading directly from the Unity Catalog (UC) table, it should already return the BIGINT data type without requiring a cast. Is there a reason why this inconsistency is occurring?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 12:05 AM
Try running explain command what's happening in the background, also if table is small try to write in another table and check