Comments (6)
What's the error that you see?
from rakam-api.
When viewing a report
ERROR: materialized view "$materialized_segment_leavers" has not been populated Hint: Use the REFRESH MATERIALIZED VIEW command.
If I open the report editor and click the "i" next to the materialized view the popup says
cache eviction duration PT5M
last updated at 1970-01-01T00:00:00Z
from rakam-api.
Are you using the latest version in master?
from rakam-api.
I was using an outdated version. I just deployed the latest code from master and now have a different issue
Error while updating materialized table '(SELECT * from taskhero."$materialized_segment_leavers" UNION ALL SELECT "id" FROM (SELECT * FROM taskhero."_users" WHERE "_time" > to_timestamp(1495130635)) data WHERE (("last_active_at" - interval '7 days') < "signup_date") ) data': ERROR: column "$server_time" does not exist Position: 112
from rakam-api.
Yes, now we require all collections to have $server_time
field, the column is automatically added for new collections but we need to add it to existing collections. Could you please run the following query on your Rakam database? Note that the snippet adds $server_time
column to all tables. if you're using the same database for different applications, it might cause some problems.
do $$
declare
selectrow record;
begin
for selectrow in
select
'ALTER TABLE "'|| T.schemaname ||'"."'|| T.mytable || '" add column "$server_time" timestamp without time zone default (current_timestamp at time zone ''UTC'')' as script
from
(
select schemaname, tablename as mytable from pg_tables t where schemaname != 'public' and schemaname != 'pg_catalog'
and (select count(*) from information_schema.columns where table_schema = t.schemaname and table_name = t.tablename and column_name = '$server_time') = 0
and tablename not like '$materialized%' and tablename != '_users' and schemaname != 'information_schema'
) t
loop
execute selectrow.script;
end loop;
end;
$$;
from rakam-api.
OK I ran the script. I also had to add $server_time to my '_users' table.
Now I am still having different issues
Error while updating materialized table '(SELECT * from taskhero."$materialized_segment_leavers" UNION ALL SELECT "id" FROM (SELECT * FROM taskhero."_users" WHERE "_time" > to_timestamp(1495132433)) data WHERE (("last_active_at" - interval '7 days') < "signup_date") ) data': ERROR: cannot change materialized view "$materialized_segment_leavers"
on some of my segments, on others
ERROR: relation "$materialized_segment_takers" does not exist Position: 178
When I can clearly see that the materialized view exists in the database. I have restarted my rakam instance and this still occurs.
from rakam-api.
Related Issues (20)
- Do not summarize the data when segment is not selected HOT 1
- Redirect to login page when SAML session is expired
- NullPointerException in InMemoryFileSystem.get
- Implement logged in user instead of Rakam proxy user
- Stop executing queries automatically onclick of event explorer. HOT 1
- Kafka + Presto configuration HOT 2
- an error when use kafka
- Try Demo in Beta won't redirect
- FATAL: role "root" does not exist with Docker HOT 1
- Why do string event properties get cropped after 100 characters? HOT 5
- Auto-suggest functionality not present for filters(columns) HOT 3
- How to set custom lock key? HOT 2
- Project name cannot start with numbers and cannot contain special chars HOT 4
- Not able to completely see suggestions in event explorer HOT 4
- Filter results for auto suggestion should forward previous filters incase of AND
- Need case insensitive for showing the auto suggestion results with user filter HOT 1
- Graph in explored window should be plotted in order as per selected dimension.
- Search box for adding measure in explorer window allows only select, doesn't allow typing in search box. HOT 1
- Properties while selecting segment should be sorted in Explorer. HOT 1
- Autosuggestion not available with "In" operator. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rakam-api.