Forum Discussion

cramkumar86's avatar
cramkumar86
Frequent Visitor
2 years ago

We cannot apply operator & to types Text and Table.

Hi, 

I am trying to reference a date returned by another query in the SQL's where clause. As you can see in the images attached. there is a table 'me_date' that contains only one column 'business_date' with a single value. When I try to pass this date to another query connecting to Impala, it gives me the below error. Could you please help?

 

Expression.Error: We cannot apply operator & to types Text and Table.

 

me_date:

 

4 Replies

  • Based on your screenshot, me_date is still a table. If the date is the only value in the table you should be able to add a Table.FirstValue step to the end of the me_date query to return just the date.

    • cramkumar86's avatar
      cramkumar86
      Frequent Visitor

      Thank you. Am I not allowed to put this step within the same table? It gives me an error.

       

       

  • try to do this and then in other requests you can refer to this request