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 · 1 comment
Open

$file_modified_time cannot be used in view #22702

mlamias opened this issue May 8, 2024 · 1 comment
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?

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

2 participants