File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -618,8 +618,8 @@ export function __table(source, operations) {
618
618
}
619
619
// Combine column types from schema with user-selected types in operations
620
620
const types = new Map ( schema . map ( ( { name, type} ) => [ name , type ] ) ) ;
621
- if ( operations . type ) {
622
- for ( const { name, type} of operations . type ) {
621
+ if ( operations . types ) {
622
+ for ( const { name, type} of operations . types ) {
623
623
types . set ( name , type ) ;
624
624
// update schema with user-selected type
625
625
if ( schema === input . schema ) schema = schema . slice ( ) ; // copy on write
@@ -629,7 +629,7 @@ export function __table(source, operations) {
629
629
source = source . map ( d => coerceRow ( d , types , schema ) ) ;
630
630
} else if ( inferredSchema ) {
631
631
// Coerce data according to new schema, unless that happened due to
632
- // operations.type , above.
632
+ // operations.types , above.
633
633
source = source . map ( d => coerceRow ( d , types , schema ) ) ;
634
634
}
635
635
for ( const { type, operands} of operations . filter ) {
You can’t perform that action at this time.
0 commit comments