Skip to content

[SPARK-42743][SQL] Support analyze TimestampNTZ columns#40362

Closed
gengliangwang wants to merge 1 commit intoapache:masterfrom
gengliangwang:analyzeColumn
Closed

[SPARK-42743][SQL] Support analyze TimestampNTZ columns#40362
gengliangwang wants to merge 1 commit intoapache:masterfrom
gengliangwang:analyzeColumn

Conversation

@gengliangwang
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Support analyze TimestampNTZ columns

ANALYZE TABLE table_name [ PARTITION clause ]
    COMPUTE STATISTICS [ NOSCAN | FOR COLUMNS col1 [, ...] | FOR ALL COLUMNS ]

Why are the changes needed?

Support computing statistics of TimestmapNTZ columns, which can be used for optimizations.

Does this PR introduce any user-facing change?

No, the TimestampNTZ type is not released yet.

How was this patch tested?

Update existing UT

@MaxGekk MaxGekk changed the title [PARK-42743][SQL] Support analyze TimestampNTZ columns [SPARK-42743][SQL] Support analyze TimestampNTZ columns Mar 10, 2023
@MaxGekk
Copy link
Copy Markdown
Member

MaxGekk commented Mar 10, 2023

+1, LGTM. Merging to master.
Thank you, @gengliangwang and @cloud-fan for review.

@MaxGekk MaxGekk closed this in ac30c07 Mar 10, 2023
gengliangwang added a commit that referenced this pull request Mar 10, 2023
### What changes were proposed in this pull request?

Support analyze TimestampNTZ columns
```
ANALYZE TABLE table_name [ PARTITION clause ]
    COMPUTE STATISTICS [ NOSCAN | FOR COLUMNS col1 [, ...] | FOR ALL COLUMNS ]
```

### Why are the changes needed?

Support computing statistics of TimestmapNTZ columns, which can be used for optimizations.

### Does this PR introduce _any_ user-facing change?

No, the TimestampNTZ type is not released yet.

### How was this patch tested?

Update existing UT

Closes #40362 from gengliangwang/analyzeColumn.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@gengliangwang
Copy link
Copy Markdown
Member Author

@MaxGekk @cloud-fan FYI I cherry-pick this one to branch 3.4 as well.

snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
### What changes were proposed in this pull request?

Support analyze TimestampNTZ columns
```
ANALYZE TABLE table_name [ PARTITION clause ]
    COMPUTE STATISTICS [ NOSCAN | FOR COLUMNS col1 [, ...] | FOR ALL COLUMNS ]
```

### Why are the changes needed?

Support computing statistics of TimestmapNTZ columns, which can be used for optimizations.

### Does this PR introduce _any_ user-facing change?

No, the TimestampNTZ type is not released yet.

### How was this patch tested?

Update existing UT

Closes apache#40362 from gengliangwang/analyzeColumn.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants