Skip to content

[CALCITE-4954] Group TEXT field failed in Elasticsearch Adapter#2695

Merged
mihaibudiu merged 1 commit intoapache:mainfrom
ILuffZhe:CALCITE-4954
Dec 5, 2024
Merged

[CALCITE-4954] Group TEXT field failed in Elasticsearch Adapter#2695
mihaibudiu merged 1 commit intoapache:mainfrom
ILuffZhe:CALCITE-4954

Conversation

@ILuffZhe
Copy link
Contributor

Set "fielddata" to "true" in Elasticsearch mapping, since aggregations and sorting are disabled by default for text type.

It's only set in the test module, which provides instruction for SQL users when they want to group or sort text field.

Copy link
Contributor

@NobiGo NobiGo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mihaibudiu
Copy link
Contributor

This seems to have been approved more than 1 year ago, so if @ILuffZhe can squash the commits we can merge it?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 4, 2024

@ILuffZhe
Copy link
Contributor Author

ILuffZhe commented Dec 4, 2024

@mihaibudiu Sorry for the delay, I've rebased this PR, please take a look when you are free.

@mihaibudiu mihaibudiu merged commit ed1a4b0 into apache:main Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants