Closed CherryDT closed 1 year ago
This is related to #238 and is because your first two data entries in that json array doesn't have phone or ctecId properties.
if you add blanks there, it should work. Data preview doesn't scan random rows or first 10 or 100 rows to infer table columns yet.
Columns are determined by the first record in your dataset and it's important that you have all the properties and correct types in your first record.
Hm, what you say doesn't make sense though, because the columns are displayed... just empty.
@CherryDT have you tried adding those missing properties with empty string values?
Yes it works then.
But what I mean is this: If the columns are based on what's in the first record, then why are phone
and ctecId
displayed as columns nonetheless? Even more interestingly, it seems like there are even types deferred somehow, because phone
is shown as number type on the left sidebar...
If the columns simply weren't there, it would be clearer what's going on...
that is the current limitation and since I'll be updating some of the dependencies in this extension soon, I don't think it's worthwhile to dig in deeper here.
So, I am going to close this for now. Just make sure all your records have the property fields you'd like to view and filter.
Hi, when you say you'll be updating some of the dependencies soon, will this limitation be addressed?
Hi, when you say you'll be updating some of the dependencies soon, will this limitation be addressed?
yes. I am currently working on new duckdb tools, and plan to get back to data preview in March/April.
Hi, when you say you'll be updating some of the dependencies soon, will this limitation be addressed?
yes. I am currently working on new duckdb tools, and plan to get back to data preview in March/April.
Great - thanks for the reply
See screenshot:![image](https://user-images.githubusercontent.com/6010463/133391077-daba952c-4e36-4c75-9b73-bb0fbbb1e8c2.png)
As you can see, the
phone
andctecId
columns are missing their data in the preview.This is the JSON data: