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

Refresh button doesn't update expanded table schemas #186

Open
puzpuzpuz opened this issue Aug 15, 2023 · 0 comments
Open

Refresh button doesn't update expanded table schemas #186

puzpuzpuz opened this issue Aug 15, 2023 · 0 comments
Labels
bug Something isn't working web-console Issues relevant to "web-console" package

Comments

@puzpuzpuz
Copy link
Contributor

Steps to reproduce

  1. Create a table:
CREATE TABLE 'weather' (
  city SYMBOL capacity,
  temperature DOUBLE,
  humidity DOUBLE,
  timestamp TIMESTAMP,
  country SYMBOL capacity 256 CACHE
) timestamp (timestamp) PARTITION BY DAY WAL;
  1. Start ingesting rows via ILP into the table, e.g. with this Go program:
package main

import (
	"context"
	"log"

	qdb "github.com/questdb/go-questdb-client"
)

func main() {
	ctx := context.TODO()
	sender, err := qdb.NewLineSender(ctx)
	if err != nil {
		log.Fatal(err)
	}
	defer sender.Close()

	for {
		err = sender.Table("weather").Symbol("city", "Varna").Float64Column("temperature", 42).AtNow(ctx)
		if err != nil {
			log.Fatal(err)
		}
		err = sender.Flush(ctx)
		if err != nil {
			log.Fatal(err)
		}
	}
}
  1. Expand weather table in the left panel and then run the following DDL:
alter table weather drop column city;
  1. Press refresh button on the left panel.

Actual result

city column is not shown although it's recreated via ILP.

Expected result

city column is shown after Refresh is pressed.

@puzpuzpuz puzpuzpuz added the bug Something isn't working label Aug 15, 2023
@argshook argshook added the web-console Issues relevant to "web-console" package label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web-console Issues relevant to "web-console" package
Projects
None yet
Development

No branches or pull requests

2 participants