Set variables as upper case for the first letter is necessary!!! #156
Replies: 1 comment
-
Thank you for your question! Sorry for delay with the response. Yes, this is intended behavior. It should definitely be better documented and maybe in the future we'll find a way to do this more intuitive. The cause is that literals starting with lower case are interpreted as variables, and starting with capital case are interpreted as predicate names. So statement An exception is made for predicate calls, i.e. expressions like If for whatever reason you want to keep your predicate lowercased you write the program as:
But uppercasing the predicate name, which you did, is the canonical way of writing the code. Let me know if you have further questions or comments. |
Beta Was this translation helpful? Give feedback.
-
This is my first day trying out
Logica
, I connected to BigQuery and coded with Google Colab, and I notice something a bit weird, especially when I tried to make a query withlimit
andorder by
.I'm not sure if this is a bug, or
Logica
worked intentionally like that.When I set up a variable called "subset", as you can see, all the letters are lower cases, and it passed and worked normally
However, when I set up the same variable "subset" with
limit
andorder by
, it makes an error as followingThe code can only pass, with an upper case alphabet on the first letter of the variable, like
Beta Was this translation helpful? Give feedback.
All reactions