My Json file has field names with spaces in it like "Customer ID".The json file sits in the S3 bucket .So,when I try creating an Athena table on this json file ,it throws me error as the field names has spaces.it loads fine when the fields with spaces are removed while loading.How do I handle this situation so the entire data gets properly loaded.
How to handle spaces in filed names in a json file while creating Athena table
763 views Asked by Anoop Nair At
1
There are 1 answers
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in AMAZON-ATHENA
- How can I join data to my table that isn't available for everyone without losing results?
- How do I change the data type in a Glue Crawler?
- How can I determine the column level differences between 2 tables?
- How to test Glue jobs and Athena queries locally on dummy data?
- AWS Athena: how to use LIKE in the query
- Using map_agg with order in Athena Presto
- Using Lambda function to create prefixes/folder like Athena when doing query
- How to register a UDF in AWS Athena?
- View uses get_json_object fails in Athena, but works in Databricks
- AWS Glue table schema comments vs no comments
- Trino/Presto SQ: Replace NULL with a value only if the NULL comes after the first non-NULL value in the group
- Programatically querying Delta Table via Athena is failing
- Submit multiple SQL queries in a dynamic way
- How do I make the rounding function of athena match redshift?
- Aws Athena SQL Query is not working in Apache spark
Related Questions in SPACES
- How to identify records in a DataFrame (Python/Pandas) that contains leading or trailing spaces
- Why do I get extra spaces in an integer list while doing list operations in python3?
- How can I use GitHub CLI to include search queries with spaces?
- Regular expression in R for finding spaces ONLY after a known word
- How do I format the Target field of a Windows SendTo shortcut to quote the paths I'm passing to it?
- How to copy with files with spaces with cp command
- Python: space before and after operators like =, +, -, etc
- NGINX Thumbnail Generation won't work with spaces or %20 in Ubuntu 22 but did in Ubuntu 16 - Nginx 1.23.0 specific
- Is there an alternative for --data-urlencode only for spaces?
- How to find if folder name contains spaces in Bash
- Python PyPDF - getting additional spaces when reading text using ExtractText
- Space that vba does not "see" in word document??? What is that?
- PHPSpreadsheet: Putting/Showing multiple spaces (whitespace/indentation) in a cell
- How do I get R to work with spaces in a file path?
- How to restrict the user to enter leading, trailing and consecutive space in a string in kotlin
Related Questions in FIELD-NAMES
- Code Igniter 3 : Error fetching data with dots Field Name
- How can the field name on the date card be removed?
- My code works even though I didn't put the dictionary key / fieldnames in the CSV file
- Kotlin automatically changes parameter names in release build
- How to get Polarion workitem field names(not values) of perticular work items using java SOAP API..?
- Run-time error '1004' The extract range has a missing or invalid field name
- How to change the field name by using existing header row name of the table; Google BigQuery platform
- What is the stubname for fields with multiple separators?
- Writing a CSV with multiple variables with fieldnames python
- field started with % in struct in Specman
- Grouping model field names in Django
- FieldNamingStrategy with Spring Data Elasticsearch
- REFLECTION: Getting the field from a class without the name
- Access is changing the field name in export to csv
- How to handle spaces in filed names in a json file while creating Athena table
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
if you have a chance convert your json file to csv
you can try something like :
main thought is - TBLPROPERTIES ('skip.header.line.count'='1') here you skip header in you .csv file and set your custom column name