Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Sep 16, 2021
1 parent 07c3d7e commit cb311dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion superset/common/query_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from superset.views.utils import get_time_range_endpoints

if TYPE_CHECKING:
from superset.common.query_context import QueryContext
from superset.common.query_context import QueryContext # pragma: no cover


config = app.config
Expand Down
7 changes: 3 additions & 4 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _try_json_readsha(filepath: str, length: int) -> Optional[str]:
# default viz used in chart explorer
DEFAULT_VIZ_TYPE = "table"

# default row limit to apply to chart data requests unless if unset
# default row limit when requesting chart data
ROW_LIMIT = 50000
# default row limit when requesting samples from datasource in explore view
SAMPLES_ROW_LIMIT = 1000
Expand Down Expand Up @@ -671,8 +671,7 @@ def _try_json_readsha(filepath: str, length: int) -> Optional[str]:
# Set this API key to enable Mapbox visualizations
MAPBOX_API_KEY = os.environ.get("MAPBOX_API_KEY", "")

# Maximum number of rows returned from a database, both SQL Lab, chart data
# requests and CSV exports
# Maximum number of rows returned for any analytical database query
SQL_MAX_ROW = 100000

# Maximum number of rows displayed in SQL Lab UI
Expand Down Expand Up @@ -1295,7 +1294,7 @@ def SQL_QUERY_MUTATOR( # pylint: disable=invalid-name,unused-argument
elif importlib.util.find_spec("superset_config") and not is_test():
try:
import superset_config # pylint: disable=import-error
from superset_config import * # pylint: disable=import-error,wildcard-import
from superset_config import * # type: ignore # pylint: disable=import-error,wildcard-import

print(f"Loaded your LOCAL configuration at [{superset_config.__file__}]")
except Exception:
Expand Down

0 comments on commit cb311dc

Please sign in to comment.