This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mypy: ignore-errors | |
| # flake8: noqa | |
| # This file is autogenerated by /metadata-ingestion/scripts/avro_codegen.py | |
| # Do not modify manually! | |
| # pylint: skip-file | |
| # fmt: off | |
| # The SchemaFromJSONData method only exists in avro-python3, but is called make_avsc_object in avro. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from hashlib import sha1 | |
| from django.utils.six import text_type | |
| def get_queryset_cache_key(queryset): | |
| """Generates a cache key from a Queryset""" | |
| db = queryset.db | |
| compiler = queryset.query.get_compiler(using=db) | |
| sql, params = compiler.as_sql() |