Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Explicitly specify the schema to ensure that the view continues to return valid data, even if new columns are added to the source file. Adapt the example above as follows to prevent the issue: cr...
#1: Initial revision
Explicitly specify the schema to ensure that the view continues to return valid data, even if new columns are added to the source file.
Adapt the example above as follows to prevent the issue:
``` sql
create view test as
SELECT * FROM
OPENROWSET(
BULK 'https://example.dfs.core.windows.net/test.parquet',
FORMAT = 'PARQUET'
)
WITH (
A varchar(100),
B varchar(100),
C varchar(100)
)
AS [result]
```
