google / google/googlesql

StructType.toString throws UnsupportedOperationException

Open
#24 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.6k
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Doing String.format or any other function that calls toString fails on a struct type.

```
java.lang.UnsupportedOperationException
at com.google.zetasql.ZetaSQLStrings.toIdentifierLiteral(ZetaSQLStrings.java:39)
at com.google.zetasql.StructType.debugString(StructType.java:177)
at com.google.zetasql.Type.toString(Type.java:334)
at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2886)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2763)
at java.util.Formatter.format(Formatter.java:2520)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2942)
```

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.