@@ -47,11 +47,11 @@ public string CreateInsertCommand(bool skipProtobufValue = false) =>
4747 TimestampValue,
4848 { EmptyOnEmulator ( "JsonValue," ) }
4949 DateValue,
50- { MaybeEmpty ( EmptyOnEmulator ( "ProtobufValueValue," ) , skipProtobufValue ) /* b/348716298 and b/348711708 */ }
50+ { MaybeEmpty ( "ProtobufValueValue," , skipProtobufValue ) /* b/348711708 */ }
5151 ProtobufDurationValue,
5252 ProtobufRectangleValue,
53- { EmptyOnEmulator ( " ProtobufPersonValue," ) /* b/348716298 */ }
54- { EmptyOnEmulator ( " ProtobufValueWrapperValue," ) /* b/348716298 */ }
53+ ProtobufPersonValue,
54+ ProtobufValueWrapperValue,
5555 BoolArrayValue,
5656 Int64ArrayValue,
5757 { EmptyOnEmulator ( "Float32ArrayValue," ) }
@@ -63,11 +63,11 @@ public string CreateInsertCommand(bool skipProtobufValue = false) =>
6363 TimestampArrayValue,
6464 { EmptyOnEmulator ( "JsonArrayValue," ) }
6565 DateArrayValue,
66- { EmptyOnEmulator ( " ProtobufValueArrayValue," ) /* b/348716298 */ }
66+ ProtobufValueArrayValue,
6767 ProtobufDurationArrayValue,
68- ProtobufRectangleArrayValue
69- { EmptyOnEmulator ( ", ProtobufPersonArrayValue" ) /* b/348716298 */ }
70- { EmptyOnEmulator ( ", ProtobufValueWrapperArrayValue" ) /* b/348716298 */ } ) VALUES(
68+ ProtobufRectangleArrayValue,
69+ ProtobufPersonArrayValue,
70+ ProtobufValueWrapperArrayValue) VALUES(
7171 @K,
7272 @BoolValue,
7373 @Int64Value,
@@ -79,11 +79,11 @@ public string CreateInsertCommand(bool skipProtobufValue = false) =>
7979 @TimestampValue,
8080 { EmptyOnEmulator ( "@JsonValue," ) }
8181 @DateValue,
82- { MaybeEmpty ( EmptyOnEmulator ( "@ProtobufValueValue," ) , skipProtobufValue ) /* b/348716298 and b/348711708 */ }
82+ { MaybeEmpty ( "@ProtobufValueValue," , skipProtobufValue ) /* b/348711708 */ }
8383 @ProtobufDurationValue,
8484 @ProtobufRectangleValue,
85- { EmptyOnEmulator ( " @ProtobufPersonValue," ) /* b/348716298 */ }
86- { EmptyOnEmulator ( " @ProtobufValueWrapperValue," ) /* b/348716298 */ }
85+ @ProtobufPersonValue,
86+ @ProtobufValueWrapperValue,
8787 @BoolArrayValue,
8888 @Int64ArrayValue,
8989 { EmptyOnEmulator ( "@Float32ArrayValue," ) }
@@ -95,48 +95,48 @@ public string CreateInsertCommand(bool skipProtobufValue = false) =>
9595 @TimestampArrayValue,
9696 { EmptyOnEmulator ( "@JsonArrayValue," ) }
9797 @DateArrayValue,
98- { EmptyOnEmulator ( " @ProtobufValueArrayValue," ) /* b/348716298 */ }
98+ @ProtobufValueArrayValue,
9999 @ProtobufDurationArrayValue,
100- @ProtobufRectangleArrayValue
101- { EmptyOnEmulator ( ", @ProtobufPersonArrayValue" ) /* b/348716298 */ }
102- { EmptyOnEmulator ( ", @ProtobufValueWrapperArrayValue" ) /* b/348716298 */ }
100+ @ProtobufRectangleArrayValue,
101+ @ProtobufPersonArrayValue,
102+ @ProtobufValueWrapperArrayValue
103103 )" ;
104104
105105 // Note: the emulator doesn't yet support the JSON type.
106106 protected override void CreateTable ( ) =>
107107 ExecuteDdl ( $@ "CREATE TABLE { TableName } (
108- K STRING(MAX) NOT NULL,
109- BoolValue BOOL,
110- Int64Value INT64,
111- { EmptyOnEmulator ( "Float32Value FLOAT32," ) }
112- Float64Value FLOAT64,
113- StringValue STRING(MAX),
114- NumericValue NUMERIC,
115- BytesValue BYTES(MAX),
116- TimestampValue TIMESTAMP,
117- { EmptyOnEmulator ( "JsonValue JSON," ) }
118- DateValue DATE,
119- { EmptyOnEmulator ( $ " ProtobufValueValue { Value . Descriptor . FullName } ," ) /* b/348716298 */ }
120- ProtobufDurationValue { Duration . Descriptor . FullName } ,
121- ProtobufRectangleValue { Rectangle . Descriptor . FullName } ,
122- { EmptyOnEmulator ( $ " ProtobufPersonValue { Person . Descriptor . FullName } ," ) /* b/348716298 */ }
123- { EmptyOnEmulator ( $ " ProtobufValueWrapperValue { ValueWrapper . Descriptor . FullName } ," ) /* b/348716298 */ }
124- BoolArrayValue ARRAY<BOOL>,
125- Int64ArrayValue ARRAY<INT64>,
126- { EmptyOnEmulator ( "Float32ArrayValue ARRAY<FLOAT32>," ) }
127- Float64ArrayValue ARRAY<FLOAT64>,
128- NumericArrayValue ARRAY<NUMERIC>,
129- StringArrayValue ARRAY<STRING(MAX)>,
130- Base64ArrayValue ARRAY<BYTES(MAX)>,
131- BytesArrayValue ARRAY<BYTES(MAX)>,
132- TimestampArrayValue ARRAY<TIMESTAMP>,
133- { EmptyOnEmulator ( "JsonArrayValue ARRAY<JSON>," ) }
134- DateArrayValue ARRAY<DATE>,
135- { EmptyOnEmulator ( $ " ProtobufValueArrayValue ARRAY<{ Value . Descriptor . FullName } >," ) /* b/348716298 */ }
136- ProtobufDurationArrayValue ARRAY<{ Duration . Descriptor . FullName } >,
137- ProtobufRectangleArrayValue ARRAY<{ Rectangle . Descriptor . FullName } >
138- { EmptyOnEmulator ( $ ", ProtobufPersonArrayValue ARRAY<{ Person . Descriptor . FullName } >" ) /* b/348716298 */ }
139- { EmptyOnEmulator ( $ ", ProtobufValueWrapperArrayValue ARRAY<{ ValueWrapper . Descriptor . FullName } >" ) /* b/348716298 */ }
108+ K STRING(MAX) NOT NULL,
109+ BoolValue BOOL,
110+ Int64Value INT64,
111+ { EmptyOnEmulator ( "Float32Value FLOAT32," ) }
112+ Float64Value FLOAT64,
113+ StringValue STRING(MAX),
114+ NumericValue NUMERIC,
115+ BytesValue BYTES(MAX),
116+ TimestampValue TIMESTAMP,
117+ { EmptyOnEmulator ( "JsonValue JSON," ) }
118+ DateValue DATE,
119+ ProtobufValueValue { Value . Descriptor . FullName } ,
120+ ProtobufDurationValue { Duration . Descriptor . FullName } ,
121+ ProtobufRectangleValue { Rectangle . Descriptor . FullName } ,
122+ ProtobufPersonValue { Person . Descriptor . FullName } ,
123+ ProtobufValueWrapperValue { ValueWrapper . Descriptor . FullName } ,
124+ BoolArrayValue ARRAY<BOOL>,
125+ Int64ArrayValue ARRAY<INT64>,
126+ { EmptyOnEmulator ( "Float32ArrayValue ARRAY<FLOAT32>," ) }
127+ Float64ArrayValue ARRAY<FLOAT64>,
128+ NumericArrayValue ARRAY<NUMERIC>,
129+ StringArrayValue ARRAY<STRING(MAX)>,
130+ Base64ArrayValue ARRAY<BYTES(MAX)>,
131+ BytesArrayValue ARRAY<BYTES(MAX)>,
132+ TimestampArrayValue ARRAY<TIMESTAMP>,
133+ { EmptyOnEmulator ( "JsonArrayValue ARRAY<JSON>," ) }
134+ DateArrayValue ARRAY<DATE>,
135+ ProtobufValueArrayValue ARRAY<{ Value . Descriptor . FullName } >,
136+ ProtobufDurationArrayValue ARRAY<{ Duration . Descriptor . FullName } >,
137+ ProtobufRectangleArrayValue ARRAY<{ Rectangle . Descriptor . FullName } >,
138+ ProtobufPersonArrayValue ARRAY<{ Person . Descriptor . FullName } >,
139+ ProtobufValueWrapperArrayValue ARRAY<{ ValueWrapper . Descriptor . FullName } >
140140 ) PRIMARY KEY(K)" ) ;
141141
142142 private string EmptyOnEmulator ( string text ) => RunningOnEmulator ? "" : text ;
0 commit comments