Skip to content

Commit

Permalink
fix(csql_grammar): get rid of obscure TODO and pass vector options to…
Browse files Browse the repository at this point in the history
… parent rule
  • Loading branch information
vimkim committed Dec 14, 2024
1 parent aee86c8 commit fcf67f6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/parser/csql_grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -21905,19 +21905,25 @@ opt_vector_args
: /* empty */
{{ DBG_TRACE_GRAMMAR(opt_vector_args, : );

// TODO
container_2 ctn;
SET_CONTAINER_2 (ctn, NULL, NULL);
$$ = ctn;

DBG_PRINT}}
| '(' unsigned_integer ')'
| '(' unsigned_integer ')'
{{ DBG_TRACE_GRAMMAR(opt_vector_args, | '(' unsigned_integer ')' );

// TODO
container_2 ctn;
SET_CONTAINER_2 (ctn, $2, NULL);
$$ = ctn;

DBG_PRINT}}
| '(' unsigned_integer ',' primitive_type ')'
| '(' unsigned_integer ',' FLOAT_ ')'
{{ DBG_TRACE_GRAMMAR(opt_vector_args, | '(' unsigned_integer ',' primitive_type ')' );

// TODO
container_2 ctn;
SET_CONTAINER_2 (ctn, $2, FROM_NUMBER(PT_TYPE_FLOAT));
$$ = ctn;

DBG_PRINT}}
;
Expand Down

0 comments on commit fcf67f6

Please sign in to comment.