Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$file_modified_time cannot be used in view #22702

Open
mlamias opened this issue May 8, 2024 · 2 comments
Open

$file_modified_time cannot be used in view #22702

mlamias opened this issue May 8, 2024 · 2 comments
Labels

Comments

@mlamias
Copy link

mlamias commented May 8, 2024

I am attempting to create a view in AWS Athena using $file_modifed_time. However, I continue to get an error that reads,

"This query ran against the "" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id:"

I can run the following query without any problems:

select "$file_modified_time" as last_update_date from MY_TABLE

I can also run the following create view without any problem (using $path):

create or replace view MY_VIEW as 
select "$path" as my_path from MY_TABLE

However, I cannot create a view from $file_modified_time:

create or replace view MY_VIEW as 
select "$file_modified_time" as last_update_date from MY_TABLE

without getting the error listed above. Is this a bug?

@mlamias mlamias added the bug label May 8, 2024
@elharo
Copy link
Contributor

elharo commented May 9, 2024

Which connector are you using?

@imjalpreet
Copy link
Member

@mlamias I tried creating a similar view using the hive connector and I don't see any issue on my end. Based on the error message, wanted to confirm if you are using Amazon Athena? If yes, please reach out to them since it's a closed-source product. If you are on open-source Presto, can you please let us know the Presto version being used and if possible please add the full stacktrace from Presto UI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 Unprioritized
Development

No branches or pull requests

3 participants