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) {
618618 }
619619 // Combine column types from schema with user-selected types in operations
620620 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 ) {
623623 types . set ( name , type ) ;
624624 // update schema with user-selected type
625625 if ( schema === input . schema ) schema = schema . slice ( ) ; // copy on write
@@ -629,7 +629,7 @@ export function __table(source, operations) {
629629 source = source . map ( d => coerceRow ( d , types , schema ) ) ;
630630 } else if ( inferredSchema ) {
631631 // Coerce data according to new schema, unless that happened due to
632- // operations.type , above.
632+ // operations.types , above.
633633 source = source . map ( d => coerceRow ( d , types , schema ) ) ;
634634 }
635635 for ( const { type, operands} of operations . filter ) {
You can’t perform that action at this time.
0 commit comments