0

How do you set a variable in dremio?

In sql, normally you can do something like:

SET @ID = (SELECT id FROM table LIMIT 1)

or

SELECT @ID = (SELECT id FROM table LIMIT 1)

This does not seem to work for Dremio query. Anybody know how variables work in dremio?

user1179317
  • 2,693
  • 3
  • 34
  • 62

1 Answers1

0

This is not possible. We can't set variables in Dremio.

Dremio uses ANSI SQL where there is no such construct.

ns15
  • 5,604
  • 47
  • 51