Skip to content
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

Error when auto picking a sort column from external tables #15192

Open
poirazis opened this issue Dec 16, 2024 · 2 comments
Open

Error when auto picking a sort column from external tables #15192

poirazis opened this issue Dec 16, 2024 · 2 comments
Labels
bb-datasource bb-sql bug Something isn't working data env - production Bug found in production externaldb Relating to datasource plus firestorm Data/Infra/Revenue Team json Relating to JSON data-type

Comments

@poirazis
Copy link
Contributor

poirazis commented Dec 16, 2024

When fetching external tables, ( i.e Postgres ) and the first column happens to be of type json, the system fails to pick another suitable column with result the grid being unable to load.

This is a very specific case, it only happens when the column that is auto picked as sort column happens to be of type json
Screenshot 2024-12-16 at 8 51 42 PM

@poirazis poirazis added the bug Something isn't working label Dec 16, 2024
Copy link

linear bot commented Dec 16, 2024

@poirazis poirazis changed the title Error when auto picking a primaryDisplay from external tables Error when auto picking a sort column from external tables Dec 16, 2024
@ConorWebb96 ConorWebb96 added externaldb Relating to datasource plus env - production Bug found in production bb-sql json Relating to JSON data-type bb-datasource data firestorm Data/Infra/Revenue Team labels Jan 9, 2025 — with Linear
@ConorWebb96 ConorWebb96 removed their assignment Jan 9, 2025
@ConorWebb96
Copy link
Contributor

Hey @poirazis,

Thanks for flagging this.

I'm adding details for our engineers when they get a chance to look into this further.

Simple table create script

CREATE TABLE platform_bugs (
    bug_data JSON,              -- JSON column
    bug_id SERIAL PRIMARY KEY   -- Primary key named after the JSON column
);

App export

postgres json column-export-1736425935463.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb-datasource bb-sql bug Something isn't working data env - production Bug found in production externaldb Relating to datasource plus firestorm Data/Infra/Revenue Team json Relating to JSON data-type
Projects
None yet
Development

No branches or pull requests

2 participants