140
questions
0
votes
0
answers
28
views
Highlighting the matching time
For say I have a table of 2 columns names , date and time how can I highlight the names in which the difference between their date and times is equal or less than 10 hours in redash I tired hour and ...
0
votes
1
answer
76
views
Replace null in last row of the column to text in lead function
Does someone know how to replace null in last row of the column to text in lead function for example
I'm using
select cust_id, ticketid,
lead(ticketid,1, no more tickets) over (order by ticket_id)...
0
votes
0
answers
34
views
Can a lateral join work using the Cross DB feature saved queries using pgsql\redash?
I am trying to optimize my queries and make pieces of code re-usable but cannot get a lateral join to work. Example I have code that creates a series start and end for 12 weeks.
I can paste this code ...
1
vote
0
answers
23
views
Stop loading all the visualisations/queries when a Dashboard is opened
We have some large dashboards, which contains multiple queries that will take time to load. When a dashboard is opened, the DB CPU is increasing to 90% and ultimately Redash is going down.
I want to ...
2
votes
0
answers
21
views
End all logged in sessions, before a user logs in on a browser
I am using Redash that contains multiple organizations. A single user can log into multiple organizations. I am using JWT Auth token to authenticate the user and redirect to specific orgainzation ...
0
votes
0
answers
50
views
redash docker compose build issue
ss of error
While setting up redash throwing this dependency error , But this docker file present in official repo
dockerfile from redash repo
While setting up redash in vm (Linux) I faced this ...
0
votes
0
answers
24
views
Redash docker throwing an error called [PID:9][ERROR] Exception on / [GET]
My docker compose:
redash:
container_name: example_redash
image: redash/redash:10.1.0.b50633
restart: unless-stopped
environment:
- REDASH_SECRET_KEY=example
- ...
0
votes
0
answers
20
views
redash can’t login to redash after enabling REDASH_MULTI_ORG
redash can’t login to redash after enabling REDASH_MULTI_ORG
couldn’t find any documentation about setting up a multi organisation
What I want to achieve is that each user's data source is independent,...
0
votes
0
answers
43
views
Mongo DB atlas not returning any data When called from redash
I have used Redash and am able to connect to the mongo db atlas. When I execute any query, I get 0 rows returned. I have confirmed that data is present in those collections.
I have used the below link ...
0
votes
0
answers
62
views
sparkSQL Postgres / DateDiff is not coverting to date
//*DateDiff does not work in redash postgres SQl. Redash are auto foramtted to dd/mm/yyyy by default. How would I use to_char(date, 'mm/dd/yyyy') in this scenerio *//
--CASE WHEN ...
0
votes
0
answers
56
views
How to implement redash into my website dashboard
I am a beginner, and I have been assigned a task to use Redash on my website to manage the charts within the dashboard.im using angular for client side and hapi js for server side. How do I go about ...
0
votes
1
answer
211
views
Can I access local Postgres server from local Redash?
I try to access local Postgres server from local Redash server.
However, I can't access the database server.
Redash says, could not connect to server: Connection refused Is the server running on host &...
0
votes
0
answers
69
views
Redash - Cascade Dropdown
is it possible (in Redash) to have two syncronized dropdown lists based on queries?
For example: list A shows some strings (Countries) from a query. When I select an item, list B shows some results(...
0
votes
0
answers
111
views
Parameter as filter in Redash
I have this script
SELECT
SUM(gppn."wonAmount") AS "ss"
FROM
"GrantParticipant" AS gp
LEFT JOIN
"GrantParticipantProjectNomination" AS gppn ON gp....
0
votes
0
answers
49
views
Mongo query optimisation in Redash Tool
{
"collection": "dispatchrequests",
"aggregate": [
{
"$match": {
"source_city_name": "{{Source}}",
"...
0
votes
1
answer
244
views
Using parameter as column name in Redash
In Redash, is there a way to use a parameter as a column name in the query.
I tried this but it doesn't work:
SELECT CASE
WHEN {{ Parameter }} = "Label Column 1" THEN COLUMN_1
WHEN {{...
1
vote
0
answers
322
views
If/Else code execution based on filter value - Redash
I would like to check if it is possible to use Redash filter parameters to turn on/off code in my Presto query.
Sample code I tried: shown below. Basically, I want to union queries only if the filter ...
0
votes
0
answers
281
views
Add MongoDB in Redash Error: Unsupported OP_QUERY command
When adding a new Data Source to a fresh Redash installation (I installed it in Docker via their install script), I get the following Error when testing the Connection:
Connection Test Failed:
...
0
votes
2
answers
1k
views
How to determine if a json field exists within an array in presto?
If I have a field jsonCol which has list of json objects, for example:
[{'name': 'fieldA', 'enum': 'someValA'},
{'name': 'fieldB', 'enum': 'someValB'},
{'name': 'fieldC', 'enum': 'someValC'}]
...
1
vote
0
answers
501
views
-ERR wrong number of arguments for get command - Redis server error
I am trying to install redash version 10.0.0 without docker. There is a script for that in the redash forum (https://discuss.redash.io/t/bring-back-bootstrap-sh/2436/12) and this is for redash 5.0, ...
0
votes
1
answer
60
views
I need to categorize my customer for eligible for bonus and Ineligible based on orders count
I have 2 tables, the first one is Orders as the following:
Customer_ID
ORDER_ID
STATUS
A
11
completed
A
12
completed
B
13
completed
B
14
completed
B
15
completed
C
16
completed
B
17
cancelled
...
0
votes
0
answers
793
views
Redash cannot connect to MySQL server through socket
I want to connect redash to MySQL Server. I added MYSQL_TCP_PORT for server to use TCP connection, not default UNIX socket (to avoid mysqld.sock error). If I go to mysql container and mysql -p - I can ...
2
votes
1
answer
3k
views
could not send SSL negotiation packet: Resource temporarily unavailable
We are using a Redash AMI hosted on an ec2 instance, and suddenly while executing a query our instance got crashed, After rebooting the instance the Redash server was up and running but now while ...
0
votes
2
answers
158
views
I want all retrieve all data of customer within a radius with longtude and latitude of 1 km
I'm using redash and my table looks something like this. I'm just learning sql. This is very advanced for me. I searched many questions, no queries worked for me
|user_id | long | lat |
|1 |31....
1
vote
0
answers
1k
views
Redash query join with another query have big data
I am working with Redash, and I need join data from another database, Redash have good feature to do this:
-- query_1
SELECT id, name, company_id
FROM users
-- query_2
SELECT id, name, created_by_id,...
0
votes
0
answers
126
views
How to return 0 if the value returned is null in MongoDB
So I'm trying to take a date from the user and then insert it into a mongodb query and then the query would return a number on this specific date. What I'm trying to reach is whenever the user enters ...
0
votes
1
answer
216
views
How do we calculate a monthly average value in MongoDB?
I have a list of documents in Mongo, each containing the value of a metric for a service for that day. The scheme is as follows:
_id: ObjectId("..."),
name: '<some_metric_name>'...
0
votes
3
answers
242
views
I want to calculate the sum of last transaction for A&B
Let's say the table looks like this:
user id
date
Amount
123
2022/11/01
5
456
2022/11/02
6
789
2022/11/03
8
123
2022/11/02
9
456
2022/11/04
6
789
2022/11/05
8
I want to calculate the sum of ...
0
votes
1
answer
604
views
How to use list of object ids inside $in inside $match in mongodb aggregation for redash visualization
I am trying to create a visualization in redash using mongo query, for few ids.I am trying to add multiple ids inside match , but its giving error, how we can give a list of object ids to match
{
&...
0
votes
1
answer
843
views
Redash v7 on Docker can't connect to RDS MySQL: "SSL connection error: unknown error number"
My Redash v7 server can't connect to Amazon RDS MySQL 8.0.28.
The error says "SSL connection error: unknown error number".
How can I solve this?
The server is running on Docker. Its image is ...
0
votes
2
answers
120
views
Checking integer lists under a column for each record to tag/classify each record (SQL) - reverse index match (or some other way)?
I have a problem I'm trying to resolve. I'd love to get your ideas or help with the method I have in my mind. I created a good analogy for it: I need to tag each record in a table if they're partial ...
0
votes
1
answer
103
views
I want to maintain a copy of the prod DB for analytics Rails 5.2.5 postgresql
I'm working on a Rails 5 app with postgres db. I want to expose the data to https://redash.io/ for reposting and data visualization but for safety reasons I don't want to directly expose the ...
0
votes
1
answer
328
views
Connecting jira to redash
Has anyone an experience in connecting jira into redash? I've found the instruction on redash website, and finely connected to my jira account, but i want to do something like tempo report (in jira) ...
1
vote
0
answers
248
views
How do we disable Postgres database in Redash?
We are exploring Redash. For that, we deployed it as a Kubernetes service. Everything worked as expected. We also configured an external Postgres database instead of the embedded Postgres (which comes ...
0
votes
1
answer
2k
views
How to convert timestamp in Redshift so that I get seconds/milliseconds?
I have a dataframe like:
id state city time
123.04 ny 1 01-10-2021 12:30
123.05 ny 2 01-10-2021 12:30
I want the the id that that is associated with the most ...
0
votes
1
answer
200
views
Query to display names for values instead of IDs between 2 tables
I have a table with the name of different sports
Sports Table
id name
----------
1 None
2 Baseball
3 Basketball
4 Football
And another table that associated states and their sports teams, ...
0
votes
0
answers
805
views
SQL, difference of max(datetime) and min(datetime) with the result of day [duplicate]
I'm trying to look for the day interval between customer latest booking and oldest booking.
I used max(booking_date) to identify a customer's latest booking date, and min(booking_date) as the oldest ...
1
vote
0
answers
2k
views
How do i use $in and $exists in redash json query?
I have the collection "students" with following documents:
{
"name": "A",
"isAlumni": false,
"info": {
"number": 123456789,
...
0
votes
2
answers
686
views
Creating Google Cloud Image fails with "Could not fetch resource: Internal error"
I'm trying to set up a private Redash instance with Google Cloud. Step 1 is to add the the Redash image to your account so you can boot a VM with it.
When adding the image through Google Cloud Shell, ...
0
votes
0
answers
175
views
Where are Postgres host and port details stored in Redash
Please help me to find where the details (hostname,port number etc.) are stored in redash. I have checked in redash database-data_sources table, found Name - PG stored in the table,but could not find ...
1
vote
0
answers
375
views
Redash container broke on "worker" in Fargate
I use the recommended Redash docker image , docker-compose tested locally, all services are up & running. (server, scheduler, worker, redis, postgres) http://localhost:5000/setup is up and running
...
0
votes
1
answer
146
views
How to automate selection of a column from multiple tables
I have several tables at least 26 ... i'm trying to select a column from all tables and displaying them as one
i tried this :
(SELECT col1,col2,col3,col4
FROM table1
ORDER BY col1 DESC LIMIT 1)
...
0
votes
1
answer
1k
views
What should I put in REDASH_REDIS_URL for Redash connect to AWS Redis?
I am trying to configure docker-compose.yml so the Redash docker can connect to my AWS resources. There are two environmental variables I think I should change from default:
REDASH_REDIS_URL: "...
0
votes
1
answer
584
views
SQL - Get percentage of empty rows in all columns with integer and varchar columns?
I have a table with 300+ columns and I want to see if there is a way to get percentage of empty rows in each of the columns. I wanted to pull the data using Python and then write a function. However, ...
0
votes
1
answer
162
views
How to move Redash hostservice to my ec2? Migration script is not working
Redash is discontinuing their hosting service app.redash.io/****. I follow this doc to standup an AWS EC2 instance from opensource AMI. First, redash-toolbelt seems installed but can't find redash-...
0
votes
1
answer
510
views
How to set up proxy behind redash server
My redash server is running on ubuntu by using aws AMI instance
Now I want to set up a proxy server for my redash server??
0
votes
1
answer
322
views
I need to generate a series of months within a select
I work with PostgreSQL integrated into Redash, and am currently needing to do the following report:
generate active_month for each subscription in the database, following the rule: for each month in ...
3
votes
1
answer
827
views
building redash chart over prometheus
I'm trying to create Redash chart based on query from prometheus data source:
rate(active_devices_count[1w]). I'm expecting to see a date/value based graph, just as I see in our Grafana, but instead ...
0
votes
1
answer
1k
views
Why am I getting an error saying 'Missing parameter' in this redash query?
I am running this query in Redash but getting a 'Missing parameter value' error. Any fix/reason for this?
The i.due_date has date, time and seconds.
Thanks!
1
vote
1
answer
3k
views
Trying to all rows from 4 different tables, Clickhouse doesnt detect table when using union all
So I have 4 subtables all the same schema and I want to show all rows between all the tables so I can have redash convert it into a chart
My current idea was to just have chain of union all, but for ...