-
|
In Perspective Viewer, I want to rename a column header name e.g. from 'market-segment' to 'Market Segment'. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
No, and this is not possible to implement the way you describe without breaking Perspective's persistence guarantee, namely that calling This may be "confusing" in some sense, but it represents the actual state of the viewer and is important information for the user to reason about what will occur with their Perspective visualization when they All this being said, it sounds like what you actually want is to rename the column in advance, as the developer of an application with an embedded |
Beta Was this translation helpful? Give feedback.
No, and this is not possible to implement the way you describe without breaking Perspective's persistence guarantee, namely that calling
save()is guaranteed to work withrestore()as long as theTable()schema under which it was constructed remains in-tact. Mutating the structure of the underlyingTable()in-place will fail to resolve renamed columns unless we also persist the alias map along with it, which is exactly what a simple expression column with just an alias does (in addition to supplanting column duplicates, multi-aggregate columns, and a host of other minor features).This may be "confusing" in some sense, but it represents the actual state of the viewer and is important info…