question

arkiboys avatar image
0 Votes"
arkiboys asked ShaikMaheer-MSFT answered

reading .prquet file

I have a .csv file in the blobstorage container.
When I right click on th efile in the blobstorage, I get the script to read top 100 rows.
When I execute the query, I get the data but the first row shows as C1, C2, C3, etc. as the heading
and the second row shows the column names of the csv and the following rows show the data...
Do you know how to remove the C1, C2, C3 in the display?
Thank you

azure-data-factory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShaikMaheer-MSFT avatar image
0 Votes"
ShaikMaheer-MSFT answered

Hi @arkiboys ,

Thank you for posting query on Microsoft Q&A Platform.

You can use HEADER_ROW = TRUE parameter inside OPENROWSET() to make your first row from file as Header.

Please check below image for better idea

133467-image.png

Hope this will help. Please let us know if any further queries.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how

  • Want a reminder to come back and check responses? Here is how to subscribe to a notification

  • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators



image.png (259.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.