Title: Make ConvertFrom-Csv and Import-Csv support outputting (ordered) hashtables as an alternative to custom objects · Issue #11027 · PowerShell/PowerShell · GitHub
Open Graph Title: Make ConvertFrom-Csv and Import-Csv support outputting (ordered) hashtables as an alternative to custom objects · Issue #11027 · PowerShell/PowerShell
X Title: Make ConvertFrom-Csv and Import-Csv support outputting (ordered) hashtables as an alternative to custom objects · Issue #11027 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement To complement the proposal in #10999, as suggested by Rain Sallow (/u/ta11ow) (@vexx32): I think we should also consider adding a switch to ConvertFrom-Csv and Import-Csv in order to import the data...
Open Graph Description: Summary of the new feature/enhancement To complement the proposal in #10999, as suggested by Rain Sallow (/u/ta11ow) (@vexx32): I think we should also consider adding a switch to ConvertFrom-Csv an...
X Description: Summary of the new feature/enhancement To complement the proposal in #10999, as suggested by Rain Sallow (/u/ta11ow) (@vexx32): I think we should also consider adding a switch to ConvertFrom-Csv an...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11027
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make ConvertFrom-Csv and Import-Csv support outputting (ordered) hashtables as an alternative to custom objects","articleBody":"# Summary of the new feature/enhancement\r\n\r\nTo complement the proposal in #10999, as suggested by @vexx32:\r\n\r\n> I think we should also consider adding a switch to `ConvertFrom-Csv` and `Import-Csv` in order to import the data `-AsHashtable` for symmetry.\r\n\r\nNote: To be a viable alternative, the output objects should be _ordered_ hashtables (`[ordered] @{}`, i.e. `System.Collections.Specialized.OrderedDictionary`), in order to preserve the input column order.\r\n\r\nThat said, note that the existing `ConvertFrom-Json -AsHashtable` feature actually outputs inherently unordered `[hashtable]` instances.\r\n\r\nBenefits:\r\n\r\n* As with `ConvertFrom-Json -AsHashtable`, you may want output objects that are easier to manipulate in terms of subsequent removal / addition of properties (entries).\r\n\r\n* Ordered hashtable instances are more lightweight than `[pscustomobject]` instances and would enable (faster) processing of larger input datasets, in cases where [pscustomobject] output consumes inordinate amounts of memory - see #7603\r\n\r\n\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-11-09T17:33:33Z","url":"https://github.com/PowerShell/PowerShell/issues/11027"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b11f45e-09f8-ecad-0623-71ca1816b155 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A544:2E484:21EB7C:2E1B21:6AFD51E0 |
| html-safe-nonce | ce46cbe673c406506285cff81f7bd6e7a28aa6d2332fe25acc23c4512705816f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTQ0OjJFNDg0OjIxRUI3QzoyRTFCMjE6NkFGRDUxRTAiLCJ2aXNpdG9yX2lkIjoiMzY4MTA5NTY4MzgzMTMyMTA1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f040186aba81c9f9cd30cad2dd4f84afc438b98db05828412c4d2f5f4ccda55 |
| hovercard-subject-tag | issue:520486823 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/11027/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ede9572b4f219a968c6547c4a32f52bb9517c6c6f2d9881efe734c13989dc217/PowerShell/PowerShell/issues/11027 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ede9572b4f219a968c6547c4a32f52bb9517c6c6f2d9881efe734c13989dc217/PowerShell/PowerShell/issues/11027 |
| og:image:alt | Summary of the new feature/enhancement To complement the proposal in #10999, as suggested by Rain Sallow (/u/ta11ow) (@vexx32): I think we should also consider adding a switch to ConvertFrom-Csv an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width