Synapse icon indicating copy to clipboard operation
Synapse copied to clipboard

File Format "NativeParquet" is never used in SampleDB.sql

Open casperlehmann opened this issue 5 years ago • 2 comments

NativeParquet is implemented as a file format, but when the view parquet.YellowTaxi is created, it refers to FORMAT='PARQUET'.

There does not seem to be a reason for it to exist, and it confuses the reader, when they are trying to get up to speed with using the platform. Is there any benefit to creating a custom file format rather than refering to 'PARQUET'?

casperlehmann avatar Jun 24 '20 12:06 casperlehmann

External File Format is required with an External Table, though it is not used in this view example. The OpenRowSet syntax uses a built-in formatter.

Agree, it would be beneficial if this example either removed the unused object or better implemented it and identified where to use a view containing OpenRowSet vs. External Table.

Also See: https://docs.microsoft.com/en-us/sql/t-sql/statements/create-external-table-transact-sql?view=sql-server-ver15 https://docs.microsoft.com/en-us/azure/synapse-analytics/sql/develop-openrowset

asears avatar Jul 02 '20 13:07 asears

Could the NativeParquet custom file format simply be used in one of the examples to make its use more apparent?

casperlehmann avatar Jul 02 '20 14:07 casperlehmann