QuestionQ194

VerifiedCost & Performance Optimisation

The data science team has asked for help accelerating queries over free-form text in user reviews. The data is currently stored in Parquet with the following schema:

item_id INT, user_id INT, review_id INT, rating FLOAT, review STRING

The review column holds the complete text of the review submitted by the user. In particular, the data science team wants to determine whether any of 30 key words are present in this field.

A junior data engineer proposes converting the data to Delta Lake to improve query performance.

Which response to the junior data engineer’s proposal is correct?

Explanation

Delta Lake data-skipping statistics are per-file, column-local statistics such as minimum and maximum values, not a term index. Long strings are truncated during statistics collection, so statistics are poorly suited to selective keyword filtering against high-cardinality free-form review text. Delta Lake’s transaction log does not create a term matrix for such fields.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!