188k views
5 votes
You are creating a new table and need to format it with parquet. Which partial SQL statement would create the table in parquet format?

A. STORED AS parquet
B. CREATE AS parquetfile
C. STORED AS parquetfile
D. CREATE AS parquet

1 Answer

5 votes

Final answer:

To format a table with Parquet during creation, the partial SQL statement would be 'STORED AS PARQUET'. This specifies the data format after the table structure is defined in an SQL query.

Step-by-step explanation:

The correct partial SQL statement to create a table formatted with Parquet would be STORED AS PARQUET. When defining a table in SQL for systems that support the Parquet format, such as Apache Hive, you typically define the structure of the table first using the CREATE TABLE statement, then specify the data format.

For example, a full statement might look like:

CREATE TABLE table_name (column1 data_type, column2 data_type, ...) STORED AS PARQUET;

This will create a new table with the specified columns and data types, and it will be stored in the Parquet format, which is known for its efficiency and performance benefits, especially in the context of big data processing and analytics.

User Dravidian
by
8.5k points