diff --git a/presto-ui/src/components/QueryResults.jsx b/presto-ui/src/components/QueryResults.jsx index 5c1b3582ba337..071f871858794 100644 --- a/presto-ui/src/components/QueryResults.jsx +++ b/presto-ui/src/components/QueryResults.jsx @@ -38,7 +38,7 @@ export function QueryResults({ results }) { let column = { name: row.name, }; - column.selector = row.type === 'bigint' ? row => row[index].toString() : row => row[index]; + column.selector = row.type === 'bigint' ? row => row[index]?.toString() ?? 'NULL' : row => row[index]; return column; }); };