SQL: I'm getting an error message when I try to upload data to create a query, how do I fix this? - sql

I keep getting an error when I try and upload data from my own documents in csv format under the table destination. How do I fix this so I can write queries for my data?
I tried changing the names of the file I was uploading and following the instructions from my course exactly without any luck. I was expecting the data to be uploaded into my project file so I could write queries to analyze the data.

Related

Creating Table in dataset in BigQuery

I want to create a Table for my dataset in BigQuery. I want to upload CSV file. When I upload it and clicked on "create table" it is saying:
unexpected error. Tracking number c986854671035387
What is this error and How can I solve this? (I also upgraded my BigQuery to 90 days free trial).
You need to check the data inside CSV. If it has column names and no faulty records.
you can download any sample CSV file from here and try
http://www.mytrapture.com/sampledata/

Having an issue uploading a table into Big Query

I keep getting an "Failed to create table: Unexpected error" every time I try to upload my CSV file(30,395KB) to Bigquery.
I've tried to see if zipping the file helped but it doesn't. I've never had this problem before with all of the other CSV files

Using Delete as header

I am using Text_JDBC40 jar and trying to fetch data from a csv file using sql query. In the csv file I have a header named as Delete so when I am trying to fetch data I am getting the below error.
Syntax error: Stopped parse at Delete
Renaming this column with some other name fetches the data properly. Any idea why this is happening? Also is there any other option for Text_JDBC40 jar?
If you are trying to import data into sql from csv then Delete quoted with Grave accent(`) while creating and retrieving the data. Please try this, may be helpful.

WAMP, PHPMyadmin, Import, CSV Error SQL query... #2006 - MySQL server has gone away

Im getting this error:
Error SQL query… #2006 - MySQL server has gone away
I'm suspecting the CSV file might be the source of the problem as other CSV work, I've tried changing the following values on the SQL server
the key_buffer_size = 900M
max_allowed_packet = 900M
But it doesnt seem to fix the problem, I've tried converting the file to SQL, XML but it just doesn't want to import.
any advice?
Here are the files:
CSV im traying to upload
CSV that works
With phpMyAdmin 4.4.13.1 and the CSV import, I was able to import your file, after I changed the first line to:
Username,Client Name,Date,Time,Published App,x
The only way I managed to import the file was to make smaller file and upload the one by one... which is strange as the csv wasn't that big 4MB thousand records...

Google BigQuery - Error while downloading data to a table

I am trying to work with the github data which has been uploaded to Google's big data. I ran a few queries (which generated a lot of rows -
eg: a query SELECT actor_attributes_login, repository_watchers , repository_forks FROM [githubarchive:github.timeline]
where repository_watchers > 2 and REGEXP_MATCH(repository_created_at, '2012-')
ORDER BY actor_attributes_login;
The answer had more than 2,20,000 rows. When I attempted to download to CSV , it said
Download Unavailable
This result set contains too many rows for direct download. Please use "Save as Table" and then export the resulting table.
When I tried to do it as Save as Table I got the following error:
Access Denied: Job publicdata:job_c2338ba91e494b21970854e13cdc4b2a: RUN_JOB
Also, I ran queries where I limited the number of rows to 200 or so, even in such cases I got the error as mentioned above. However I was able to download it as CSV.
Any solution to this problem?
#Anerudh You don't have access to modify the publicdata samples dataset. Create a brand new dataset, and try to save your query results to a new table in that dataset.