JustGui opened a new issue, #27939:
URL: https://github.com/apache/superset/issues/27939

   ### Bug description
   
   Importing a dataset/chart/dashboard linked to a Trino database with 
TRINO_EXPAND_ROWS=True and "Row expansion in schema" activated, returns an 
error via the API & Superset interface.
    
   ![Screenshot 2024-04-08 at 14 34 
00](https://github.com/apache/superset/assets/60286579/e56d0ebb-b786-42b9-82a7-53e2224f8d7b)
   
   To avoid this error, you need to remove the following lines from the YAML 
file before importing:
   ```
     schema_options:
       expand_rows: true
   ```
   
   Superset API shouldn't break when new extras are added to a database as the 
database itself isn't altered when we remove existing extras from the YAML file 
and import the dataset with this altered schema. It seems like the extra in the 
YAML doesn't really matter at the end, so it shouldn't break the API.
   
   Thx!
   
   ### How to reproduce the bug
   
   1. Add the feature flag "TRINO_EXPAND_ROWS": True
   2. Enable "Row expansion in schema" on a Trino database
   ![Screenshot 2024-04-08 at 14 24 
41](https://github.com/apache/superset/assets/60286579/f579cdf1-6dc8-4ce0-8a3b-5cb00710aa19)
   3. Export a dataset as a zip using this database via the interface
   4. Import again this dataset (the same zip file)
   5. After validating, instead of proposing to overwrite your dataset, it will 
return an error
   ![Screenshot 2024-04-08 at 14 34 
00](https://github.com/apache/superset/assets/60286579/82511157-c924-441c-9850-1943e08c963d)
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.10
   
   ### Node version
   
   16
   
   ### Browser
   
   Firefox
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [X] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to