I want to get the second last key from my json , I have tried but it is giving the following error awsathena error: INVALID_FUNCTION_ARGUMENT: Inv ...
I want to get the second last key from my json , I have tried but it is giving the following error awsathena error: INVALID_FUNCTION_ARGUMENT: Inv ...
I have a column filled with dates in string format, e.g. 2023-01-31 11:21:33 GMT. I am trying to write a query that will select a year and a month an ...
What is the appropriate format for my datetime? I've tried several combinations and getting various errors. The data is a string and here is an exampl ...
Scenario: I upload a CSV file into a S3 bucket and now I would like to read this table using Trino. Is it possible to just read the table without th ...
I want a generic query to get fill rate of all columns in table .Query should work irrespective of the column number.I have to implement this using pr ...
Does Projection pushdown work in this case? As you can see, In the CTE, I do a SELECT * from the table but then when I actually pull in the data, I ...
Using AWS Athena, I am running the query I am getting: 0, 0, 1, 1 I would expect to get: 0, 0, 0, 0 Is the expected behaviour of cast to round a ...
I want to convert datatype of string (eg : '2018-03-27T00:20:00.855556Z' ) into date (eg : '2018-03-27') problem is cast(substring(dt, 1, 10) as date ...
I have a json saved in Athena table like I need to write a query in Athena to find, find all the FAILED=TRUE records like below output: I have ...
I have product data in my table which looks similar to this product_id user_id sales_start sales_end quantity ...
So far I have tried this code, the first part seems to work which seems to give me the innest JSON objects but can convert them to individual colu ...
I have column name requestdatetime with data type string. Value for requestdatetime is in format 15/Aug/2022:01:54:41 +0000 I need to convert 15/Aug/ ...
I have "prices" table with this data: id start_date end_date paid 787 1/1/2022 1/15 ...
I've been trying for a long time, through Glue's crawlers, to recognize .jsons from my S3, to be queried in Athena. But after different changes in set ...
I want to set the client tags submitted with each query using SQLAlchemy API. I have created engine like below ...
I have a json like this in an Athena table: I would like to get the fist value "14587979" but when I use json_extract like this: json_extract(inp ...
I was create this query: unfortunately this is my wrong data in first_vs_last_percentages col ID first_price last_pric ...
I have a table that looks like date oil gas petroleum 2022-01 100 90 80 ...
Seeking some help after spending 2 days on searching but to no avail and decided to post this here as I'm rather new to SQL, so any help is greatly ap ...
I have in Athena json string: {"recurrent_jobs.new_page.career_level.trainee":0,"recurrent_jobs.new_page.career_level.assistant":1} I need get resul ...