File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1313 */
1414package io .trino .gateway .ha .persistence .dao ;
1515
16+ import jakarta .annotation .Nullable ;
1617import org .jdbi .v3 .core .mapper .reflect .ColumnName ;
1718
1819import static java .util .Objects .requireNonNull ;
@@ -21,16 +22,14 @@ public record QueryHistory(
2122 @ ColumnName ("query_id" ) String queryId ,
2223 @ ColumnName ("query_text" ) String queryText ,
2324 @ ColumnName ("backend_url" ) String backendUrl ,
24- @ ColumnName ("user_name" ) String userName ,
25- @ ColumnName ("source" ) String source ,
25+ @ ColumnName ("user_name" ) @ Nullable String userName ,
26+ @ ColumnName ("source" ) @ Nullable String source ,
2627 @ ColumnName ("created" ) long created )
2728{
2829 public QueryHistory
2930 {
3031 requireNonNull (queryId , "queryId is null" );
3132 requireNonNull (queryText , "queryText is null" );
3233 requireNonNull (backendUrl , "backendUrl is null" );
33- requireNonNull (userName , "userName is null" );
34- requireNonNull (source , "source is null" );
3534 }
3635}
You can’t perform that action at this time.
0 commit comments