I have loaded an uncompressed CSV file in BigQuery using Cloud Dataprep. When executing a query for analysis, the data it is not returning values properly.
For example, I have data in a table tab_status
as shown here. When I do:
SELECT * FROM tab_status
It is showing all values. However, if I query on values:
SELECT * FROM tab_status trim(lower(Status)) like '%active%'
it is returning null and not giving any result.
I have checked the length which is more than the string length (shown here):
SELECT DISTINCT trim(lower(Status)), length(trim(lower(Status))) FROM tab_status
Now when I export the data from BigQuery and open it in Sublime text editor, it is showing a different format as below:
6630 5f0a 0061 0063 0074 0069 0076 0065
000a 0068 0065 006c 0064 000a 0062 006f
0075 006e 0063 0065 0064 000a 0075 006e
0073 0075 0062 0073 0063 0072 0069 0062
0065 0064 000a
Can anyone suggest how to deal with those data in BigQuery, since it's showing correctly in the preview. How do I query on value? Are there any transformation / functions available?