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 f839479
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 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 ')'
{{ 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 f839479

Please sign in to comment.