title: Invalid argument types for function SQL compilation error when passing parameter values to Snowflake Function
body: <p>I have create a function in Snowflake with two 'date'arguments:</p>
  <p>CREATE OR REPLACE FUNCTION &quot;fn_CreateHourLabels&quot;(start_date date,end_date date)
  RETURNS TABLE ...</p>
  <p>When I attempt to use the function:</p>
  <p>SELECT * FROM TABLE(&quot;fn_CreateHourLabels&quot;('2021-03-01','2021-03-11'))</p>
  <p>I get the following error:
  SQL compilation error: error line 1 at position 20 Invalid argument types for function '&quot;fn_CreateHourLabels&quot;': (VARCHAR(10), VARCHAR(10))</p>
  <p>I am assuming there is something simple I have missed. Is it because the I have declared the arguments as 'date' data types and the select statement is classifying my date values as strings?</p>
  <p>Thanks in advance</p>