Closed SpencerTorres closed 2 months ago
The array change you suggested worked locally, I didn't get any errors when unit testing or in-editor, but the build seemed to be failing. I tried updating to a typescript version that supports that extension and it lead to a complete collapse of the plugin's package ecosystem. I think I even saw leftpad mentioned in the logs.
Anyway, let me know if you want me to try again. I want to use that new feature, but there's a lot of dependencies affected by updating TS.
Purpose
Some schemas have complicated maps such as OTel
LogAttributes
. This feature allows configuring a table like this:This table can then be configured in the plugin:
And then be used for the target table's column suggestions:
With the column selection simplified, the correct SQL will be generated using the underlying
select
syntax:Notes:
DESC TABLE
for column suggestions.ALIAS
column type, but this feature allows for easier maintenance without having to run bulk updates on your primary table (some schemas may have thousands of alias entries).Changes
label
, which defaults to the field name if an alias doesn't override it.