googleapis / googleapis/google-cloud-java

[java-spanner] Truncating and Limiting the Value's class toString() to 36 characters

Aperta
#12,260 5 commenti 0 reazioni 1 assegnatario Assegnata a @rahul2393 Vedi su GitHub
api: spanner
Lingua principale
Java
Stelle
2.1k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
154

Descrizione

In java class [Value](https://github.com/googleapis/java-spanner/blob/main/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Value.java) for 3 data types which includes `String`, `JSON`, `PGJSONB` we are truncating the response of method `valueToString` to 36 characters. Method `valueToString` is called internally by `toString()` method.

The `toString()` method is designed to return a string representation of an object, and it's expected to provide a complete and meaningful representation of the object's state. Truncating it may lead to loss of information and make debugging and logging more difficult.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.