Skip to content

Conversation

@CosmosNi
Copy link
Contributor

@CosmosNi CosmosNi commented Mar 4, 2025

close #8894

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

```

案例六 : sql 方式查询
notes: sql does not support map and array types
Copy link
Member

Choose a reason for hiding this comment

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

Please use chinese here.

public static final Option<String> SEARCH_TYPE =
Options.key("search_type")
.stringType()
.defaultValue("dsl")
Copy link
Member

Choose a reason for hiding this comment

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

use enum?

* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.connectors.seatunnel.elasticsearch.dto.source;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
package org.apache.seatunnel.connectors.seatunnel.elasticsearch.dto.source;
package org.apache.seatunnel.connectors.seatunnel.elasticsearch.client;

Comment on lines 84 to 86
cursorSearchResult(seaTunnelRowType, sourceIndexInfo, output);
} else {
scrollSearchResult(seaTunnelRowType, sourceIndexInfo, output);
Copy link
Member

Choose a reason for hiding this comment

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

what's different between cursorSearchResult and scrollSearchResult? Can we merge it?

Copy link
Member

Choose a reason for hiding this comment

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

@CosmosNi CosmosNi requested a review from Hisoka-X March 10, 2025 01:06
Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

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

Thanks @CosmosNi . LGTM except one minior problem.

Deque<ElasticsearchSourceSplit> splits = new LinkedList<>();
boolean noMoreSplit;

private final String SQL_TYPE = "sql";
Copy link
Member

Choose a reason for hiding this comment

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

useless?

@hailin0 hailin0 merged commit 8140862 into apache:dev Mar 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][elasticsearch-connector] support elasticsearch sql source

3 participants