Skip to content

Commit 965077f

Browse files
authored
Nullable column field fix. (#2896)
1 parent 42b8863 commit 965077f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

web/src/components/datasets/DatasetInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const DatasetInfo: FunctionComponent<DatasetInfoProps> = (props) => {
116116
<TableCell align='left'>
117117
<Chip
118118
size={'small'}
119-
label={<MqText font={'mono'}>{field.type}</MqText>}
119+
label={<MqText font={'mono'} small>{field.type || 'N/A'}</MqText>}
120120
variant={'outlined'}
121121
/>
122122
</TableCell>

web/src/types/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import { JobOrDataset, LineageNode } from './lineage'
5+
import {Nullable} from "./util/Nullable";
56

67
export interface Tag {
78
name: string
@@ -150,7 +151,7 @@ export type DatasetType = 'DB_TABLE' | 'STREAM'
150151

151152
export interface Field {
152153
name: string
153-
type: string
154+
type: Nullable<string>
154155
tags: string[]
155156
description: string
156157
}

0 commit comments

Comments
 (0)