You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/03/13 06:59:42 UTC

[GitHub] [incubator-superset] francisliyy opened a new issue #7023: upload file using model view failed

francisliyy opened a new issue #7023: upload file using model view failed
URL: https://github.com/apache/incubator-superset/issues/7023
 
 
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
     http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   
   ### Superset version
   master branch
   
   ### Expected results
   follow the sample from flask app builder example:
   https://github.com/dpgaspar/Flask-AppBuilder/tree/master/examples/quickfiles
   
   I tried to use a F.A.B project, it worked fine, but in superset, it failed.
   
   ### Actual results
   when inserting database, it got null for file column, the errors like below:
   
   2019-03-13 14:39:00,143:ERROR:flask_appbuilder.models.sqla.interface:Add record error: (MySQLdb._exceptions.OperationalError) (1048, "Column 'file' cannot be null") [SQL: 'INSERT INTO static_files (file, description) VALUES (%s, %s)'] [parameters: (None, 'test file upload')] (Background on this error at: http://sqlalche.me/e/e3q8)
   Traceback (most recent call last):
     File "/home/lyx/visualBI/venv/lib64/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
       context)
     File "/home/lyx/visualBI/venv/lib64/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute
       cursor.execute(statement, parameters)
     File "/home/lyx/visualBI/venv/lib64/python3.6/site-packages/MySQLdb/cursors.py", line 206, in execute
       res = self._query(query)
   
   ### Steps to reproduce
   
   (1) click add button to redirect to add page.
   (2) choose a file 
   (3) input the description
   (4) click submit
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org