<p dir="auto">When trying to run "superset db upgrade" I get an error message.</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">I was expecting a successful message and program ready to use.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) duplicate column name: filter_type [SQL: ALTER TABLE row_level_security_filters ADD COLUMN filter_type varchar(255)]</p>
<h4 dir="auto">Screenshots</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1051586/122998363-51b62480-d383-11eb-829a-c65b6905b760.jpg"><img src="https://user-images.githubusercontent.com/1051586/122998363-51b62480-d383-11eb-829a-c65b6905b760.jpg" alt="instalacao_superset_errosqlalchemy" style="max-width: 100%;"></a></p>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Run 'sudo apt-get install build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev'</li>
<li>Run 'pip3 install virtualenv'</li>
<li>Run 'python3 -m venv venv'</li>
<li>Run '. venv/bin/activate'</li>
<li>Run 'pip3 install apache-superset'</li>
<li>Run 'pip3 install sqlalchemy==1.3.24' (had to downgrade existing version)</li>
<li>Run 'superset db upgrade'</li>
<li>'See error</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Ubuntu 18.04 LTS;</li>
<li>superset version: 0.38.1</li>
<li>python version: 3.6.9</li>
<li>node.js version: 8.10.0</li>
<li>SQLAlchemy 1.3.24</li>
</ul>
<h3 dir="auto">Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto">I was able to complete the following tasks:<br>
i) install all required dependencies;<br>
ii) install and start python virtual environment.</p>
<p dir="auto">This is a virtual machine.</p>
<p dir="auto">We have a query that returns timeseries data with two columns:</p>
<ul dir="auto">
<li>date</li>
<li>count</li>
</ul>
<p dir="auto">I would like to simply graph the data as a line chart. However, when selecting the line chart, it requires that I choose a metric for the data, e.g. sum, average, etc</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17307/55236091-cbf4ae80-5237-11e9-9aad-50b5db6c9def.png"><img src="https://user-images.githubusercontent.com/17307/55236091-cbf4ae80-5237-11e9-9aad-50b5db6c9def.png" alt="flameshot-2019-03-29T15:31:01" style="max-width: 100%;"></a></p>
<p dir="auto">Since my data are already in the desired form, how can I just tell the chart to use the data as-is?</p>
<p dir="auto">Note: I can also select the "sum" metric, since I am not performing any additional aggregation, but this seems a bit "kludgy".</p>