From e1c054b93fa4eb9cdfcffc1238a742caa809c460 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Mon, 23 Nov 2020 11:47:25 -0500 Subject: [PATCH] retain MT_VOID distinction in record-readers --- go/src/miller/types/mlrval_new.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go/src/miller/types/mlrval_new.go b/go/src/miller/types/mlrval_new.go index 0bb70e2c4..84994b987 100644 --- a/go/src/miller/types/mlrval_new.go +++ b/go/src/miller/types/mlrval_new.go @@ -182,6 +182,10 @@ func MlrvalFromInferredType(input string) Mlrval { // xxx the parsing has happened so stash it ... // xxx emphasize the invariant that a non-invalid printrep always // matches the nval ... + if input == "" { + return MlrvalFromVoid() + } + _, iok := lib.TryInt64FromString(input) if iok { return MlrvalFromInt64String(input)