Changing the tableau datasource settings to use google-bql (legacy sql) resolved the issue. There are 2 ways to get this done.
Method 1: Edit the tableau file in a text editor and change the SQL connection dialect from google-sql to google-bql.
connection-dialect='google-bql'
This has to be done in every tableau workbook.
Method 2: Create a Tableau Datasource Customization (Example: BigQueryCustomization.tdc) with the following contents.
<connection-customization class='bigquery' enabled='true' version='10.0' >
<vendor name='bigquery' />
<driver name='bigquery' />
<customizations>
<customization name='connection-dialect' value='google-bql' />
</customizations>
</connection-customization>
Place it inside the ..\Documents\My Tableau Repository\Datasources\ folder. This will enforce tableau to use legacy SQL to connect to bigquery. It’s not the exact tableau version number but the sql-connection-dialect setting that does the trick.
More info on the following link - https://onlinehelp.tableau.com/current/pro/desktop/en-us/examples_googlebigquery.html