为什么即使存在csv文件,也会出现FileNotFoundException?

时间:2020-10-04 22:31:40

标签: java filenotfoundexception

导入csv后,我尝试将文件读取为两个数组。但是,尽管我确定文件存在,但是却遇到了FileNotFoundException。有什么想法吗?

https://repl.it/repls/VapidFrighteningMention#Main.java

'''

SELECT
   t1.created_year as year_2013
  ,t2.created_year as year_2014
  ,t1.created_month as month_of_year
  ,t1.number_of_registration_2013 
  ,t2.number_of_registration_2014 
  ,(t2.number_of_registration_2014 - t1.number_of_registration_2013) / t1.number_of_registration_2013 * 100 as percent_change_in_previous_year_month
FROM  
    (select 
         extract(year from created_at) as created_year
        ,extract(month from created_at) as created_month
        ,count(*) as number_of_registration_2013
    from users
    where extract(year from created_at) = '2013'
    group by 1,2)  t1
inner join 
    (select 
         extract(year from created_at) as created_year
        ,extract(month from created_at) as created_month
        ,count(*) as number_of_registration_2014
    from users
    where extract(year from created_at) = '2014'
    group by 1,2)  t2
on t1.created_month = t2.created_month

'''

0 个答案:

没有答案
相关问题