You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,6 +54,8 @@ func (s *FileSpec) SetDefaults() {
51
54
s.jsonSpec.SetDefaults()
52
55
caseFormatTypeParquet:
53
56
s.parquetSpec.SetDefaults()
57
+
caseFormatTypeXLSX:
58
+
s.xlsxSpec.SetDefaults()
54
59
}
55
60
}
56
61
@@ -68,10 +73,14 @@ func (s *FileSpec) Validate() error {
68
73
returns.jsonSpec.Validate()
69
74
caseFormatTypeParquet:
70
75
ifs.Compression!=CompressionTypeNone {
71
-
returnerrors.New("compression is not supported for parquet format") // This won't work even if we wanted to, because parquet writer prematurely closes the file handle
76
+
returnfmt.Errorf("compression is not supported for the %s format", s.Format)
72
77
}
73
-
74
78
returns.parquetSpec.Validate()
79
+
caseFormatTypeXLSX:
80
+
ifs.Compression!=CompressionTypeNone {
81
+
returnfmt.Errorf("compression is not supported for the %s format", s.Format)
82
+
}
83
+
returns.xlsxSpec.Validate()
75
84
default:
76
85
returnfmt.Errorf("unknown format %s", s.Format)
77
86
}
@@ -96,6 +105,9 @@ func (s *FileSpec) UnmarshalSpec() error {
0 commit comments