Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong row type display name #323

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class RowType extends AbstractType {
private final boolean comparable;
private final boolean orderable;

private static final String ROW_NAME = "row";

private RowType(List<Field> originalFields) {

this.fields = new ArrayList<>(originalFields);
Expand Down Expand Up @@ -93,7 +95,7 @@ public TypeEnum getTypeEnum() {
public String getDisplayName() {
// Convert to standard sql name
StringBuilder result = new StringBuilder();
result.append("ROW").append('(');
result.append(ROW_NAME).append('(');
for (Field field : fields) {
String typeDisplayName = field.getType().getDisplayName();
if (field.getName().isPresent()) {
Expand Down
Loading