Agazoth / PSParquet

Read and write parquet files from the PowerShell commandline
MIT License
12 stars 0 forks source link

Import-PSParquet returns an list in stead of objects #6

Closed Agazoth closed 3 months ago

Agazoth commented 3 months ago

Describe the bug Import-Parquet returns a List of PSObjects in stead of objects. That makes it difficult to iterate over the objects in the next step of a pipeline. The cmdlet has to be wrapped in $() in order to produce objects for the pipeline

To Reproduce

PS> Import-Parquet -FilePath $File| gm

   TypeName: System.Collections.Generic.List`1[[System.Management.Automation.PSObject, System.Management.Automation,
Version=7.4.3.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]

Expected behavior

PS> Import-Parquet -FilePath $File| gm

   TypeName: System.Management.Automation.PSCustomObject

Screenshots If applicable, add screenshots to help explain your problem.

PowerShell info

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Agazoth commented 3 months ago

Fixed in 0.2.13