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 ...
In the AWS Re:Invent 2022 it was announced new functionalities for Athena, including run data analytics and exploration using Apache Spark without the ...
I created this policy below to prevent users from downloading files in a specific Amazon S3 bucket, but they were also unable to run a query in Amazon ...
I'm currently trying to execute an Athena Query during a State Machine. The query itself needs a date variable to use in several WHERE statements so I ...
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 ...
Based on my research, the easiest and the most straight forward way to get metadata out of Glue's Data Catalog, is using Athena and querying the infor ...
i have a bigint data type value 10062019192751 it is said to me that it is a datetime formated as ddmmyyyyhhmmss (10-06-2019 19:27:51) how can i conv ...
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 formatted like: myjson = {"key":["value1","value2"]} and a I want to convert it as string Sometime this json can return null: myjson = { ...
I'm creating a table in Athena based on a list of CSV files in an S3 bucket. The files in the buckets are placed in folders like this: This is the ...
I checked this question and this thread in GitHub. It works for Mac but doesn't work for Windows. And I still getting the error. Looks like dbeaver ...
I have multiple HUDI tables with differing column names and I built a view on top of it to standardize the column names. When this view is read from A ...
I am creating a table 'A' from another table 'B' in Athena using create sql query. However, Table 'B' is updated with new rows every hour. I want to k ...
So I have a table that contains long text which is basically the recorded changes if I change some items in my profile settings. I need to extract wha ...
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 ...
I am just learning Snowflake. Now having a problem which is probably about unnest/flaten etc. I have a SQL code in Athena: The results is a date se ...