From d78da8a9bf748de045d2a7fc1f06a8ce9f5b7d31 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Sun, 4 Jun 2017 18:02:10 -0700 Subject: [PATCH] [docs faq] how do I add new columns to an existing table (#2888) --- docs/faq.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/faq.rst b/docs/faq.rst index 77e6d97678075..9c69b875cd1ba 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -124,3 +124,16 @@ __ https://www.sqlite.org/lockingv3.html One work around is to create a symlink from ~/.superset to a directory located on a non-NFS partition. Another work around is to change where superset stores the sqlite database by adding ``SQLALCHEMY_DATABASE_URI = 'sqlite:////new/localtion/superset.db'`` in superset_config.py (create the file if needed), then adding the directory where superset_config.py lives to PYTHONPATH environment variable (e.g. ``export PYTHONPATH=/opt/logs/sandbox/airbnb/``). + +How do I add new columns to an existing table +--------------------------------------------- + +Table schemas evolve, and Superset needs to reflect that. It's pretty common +in the life cycle of a dashboard to want to add a new dimension or metric. +To get Superset to discover your new columns, all you have to do is to +go to ``Menu -> Sources -> Tables``, click the ``edit`` icon next to the +table who's schema has changed, and hit ``Save`` from the ``Detail`` tab. +Behind the scene, the new columns will get merged it. Following this, +you may want to +re-edit the table afterwards to configure the ``Column`` tab, check the +appropriate boxes and save again.