You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "maudrid (via GitHub)" <gi...@apache.org> on 2024/03/08 12:04:59 UTC

[I] [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset") [superset]

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

   ### Bug description
   
   When exporting certain datasets, the serialized version of the dataset is invalid.
   This causes validation with marshmallow to fail when you try to import it again.
   
   
   ### How to reproduce the bug
   
   
   In the superset UI:
   1. Open any dataset
   2. Go to the settings tab and enter any value in the `TEMPLATE PARAMETERS` field and save. This is enough to trigger the bug, but you can also remove the value from the `TEMPLATE PARAMETERS` field and save again, and the bug will still persist.
   3. Export the dataset using the export feature.
   4. Immediately try to import the same dataset again.
   
   ### Screenshots/recordings
   
   ![image](https://github.com/apache/superset/assets/9637747/14fdfbd7-69c3-4a1d-a675-17a2c0b10d42)
   
   ![image](https://github.com/apache/superset/assets/9637747/031af68c-174b-4cd3-a5f8-d5253b14680f)
   
   
   ### Superset version
   
   3.0.4
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   In order to work around this issue:
   1. Open the zip file and extract the dataset yaml file
   2. Find the field called template_params. If the dataset is broken the value of this field will be a string value or an empty string like this: template_params: ''
   3. Change the value to null like this -> template_params: null
   4. Save the file and place it back into the zip file that was exported.
   5. Import the dataset back into superset
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] 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: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset") [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #27437:
URL: https://github.com/apache/superset/issues/27437#issuecomment-2483892035

   Hi there... sorry this has gone so quiet for so long, but that makes it sound like some form of edge case. Is anyone on the thread still experiencing this in newer/supported versions (4.x)? If so, we can re-open this, but for the moment, I'll close it as stale, and obsolete due to the version at play.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset") [superset]

Posted by "fmannhardt (via GitHub)" <gi...@apache.org>.
fmannhardt commented on issue #27437:
URL: https://github.com/apache/superset/issues/27437#issuecomment-2005310460

   It also occurs in 3.1.1 for me. Easy to reproduce by simply changing `template_params: null` to `template_params: ''` in any of the datasets exported.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset") [superset]

Posted by "maudrid (via GitHub)" <gi...@apache.org>.
maudrid commented on issue #27437:
URL: https://github.com/apache/superset/issues/27437#issuecomment-2551757851

   Tested this with version 4.0.1 and still having this issue.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset") [superset]

Posted by "maudrid (via GitHub)" <gi...@apache.org>.
maudrid commented on issue #27437:
URL: https://github.com/apache/superset/issues/27437#issuecomment-2553843787

   Tested now on version 4.1.1 and the issue is NOT resolved.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset") [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #27437: [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset")
URL: https://github.com/apache/superset/issues/27437


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] [v3.0.4] Dataset serialization can produce bad export. ("An error occurred while importing dataset") [superset]

Posted by "maudrid (via GitHub)" <gi...@apache.org>.
maudrid commented on issue #27437:
URL: https://github.com/apache/superset/issues/27437#issuecomment-2627394306

   Can this be re-opened as it's still a bug currently.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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