apache / apache/linkis

[Feature][public] Result set fields support truncation

Open
#5,298 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
Java
Stars
3.4k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [x] I had searched in the [issues](https://github.com/apache/linkis/issues) and found no similar feature requirement.

### Problem Description

1. If a field in the script query result set exceeds 10000 characters, it cannot be displayed properly
2. Download/upload Excel script, if a field exceeds 32767 characters, it will cause service abnormalities

### Description

1. If a field in the script query result set exceeds 10000 characters, it cannot be displayed properly
2. Download/upload Excel script, if a field exceeds 32767 characters, it will cause service abnormalities

### Use case

none

### Solutions

1. When certain fields are over 10000 characters long, the user should be prompted which fields are over 10000 characters long and allowed to choose whether to display the first 10000 characters. If so, extract the first 10000 characters and display the result set normally
2. For the two functions of "download" and "export": the first 32767 characters need to be truncated, and special prompts should be given to the user which fields have been truncated

### Anything else

none

### Are you willing to submit a PR?

- [x] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.