ClickHouse/src/DataTypes
SuperDJY dd2972b8c3
return fake create query when executing show create table on system's tables. (#31391)
* clarify that cannot show create table of system's tables

* clarify that cannot show create table of system's tables in the document

* bypass test style-check for required `database=currentDatabase()` because `show create table` do not have condition

* rename supportsShowCreateTable to isSystemStorage

* build fake create query for show create table of system's tables

* fix tests for show create table on system's table:

1. only build fake create query when cannot get real query
2. only test rocksdb when it's enabled.

* fix test for show create table system.tables

* fix test for ASTCreateQuery set table and database

* change to LOGICAL_ERROR when cannot get in_memory metadata

Co-authored-by: tavplubix <tavplubix@gmail.com>

* implement common getCreateQueryFromStorage

Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-11-19 13:25:55 +03:00
..
examples move to examples everywhere 2021-04-27 01:51:42 +03:00
Serializations Fix build 2021-11-02 16:09:20 +03:00
tests add unit test for NestedUtils 2021-09-02 20:43:42 +03:00
CMakeLists.txt move to examples everywhere 2021-04-27 01:51:42 +03:00
convertMySQLDataType.cpp return fake create query when executing show create table on system's tables. (#31391) 2021-11-19 13:25:55 +03:00
convertMySQLDataType.h return fake create query when executing show create table on system's tables. (#31391) 2021-11-19 13:25:55 +03:00
DataTypeAggregateFunction.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeAggregateFunction.h fix another bug 2021-07-27 20:16:40 +03:00
DataTypeArray.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeArray.h better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeCustom.h return back data types 2021-03-09 17:10:28 +03:00
DataTypeCustomGeo.cpp Merge remote-tracking branch 'upstream/master' into HEAD 2021-03-13 01:41:26 +03:00
DataTypeCustomGeo.h Merge remote-tracking branch 'upstream/master' into HEAD 2021-03-13 01:41:26 +03:00
DataTypeCustomIPv4AndIPv6.cpp refactoring of serializations 2021-03-09 20:02:26 +03:00
DataTypeCustomSimpleAggregateFunction.cpp *MappedArrays will return old name for backwards compability 2021-08-05 21:10:50 +05:00
DataTypeCustomSimpleAggregateFunction.h Untangle UUID 2021-05-04 01:46:51 +03:00
DataTypeDate32.cpp Revert "Merge pull request #26352 from ClickHouse/revert-25774-datatype-date32" 2021-07-15 11:41:52 +00:00
DataTypeDate32.h Rename "common" to "base" 2021-10-02 10:13:14 +03:00
DataTypeDate.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeDate.h return back data types 2021-03-09 17:10:28 +03:00
DataTypeDateTime64.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeDateTime64.h enable DateTime64 to be version column 2021-05-10 20:30:52 +08:00
DataTypeDateTime.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeDateTime.h better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeDecimalBase.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeDecimalBase.h Replacing IsDecimalNumber 2021-09-11 00:40:18 +02:00
DataTypeEnum.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeEnum.h code cleanup 2021-08-24 00:42:03 +03:00
DataTypeFactory.cpp Revert "Merge pull request #26352 from ClickHouse/revert-25774-datatype-date32" 2021-07-15 11:41:52 +00:00
DataTypeFactory.h Revert "Merge pull request #26352 from ClickHouse/revert-25774-datatype-date32" 2021-07-15 11:41:52 +00:00
DataTypeFixedString.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeFixedString.h Fixed build 2021-10-06 23:22:29 +03:00
DataTypeFunction.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
DataTypeFunction.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
DataTypeInterval.cpp dbms/ → src/ 2020-04-03 18:14:31 +03:00
DataTypeInterval.h Initial: replacing hardcoded toString for enums with magic_enum 2021-09-06 16:24:03 +02:00
DataTypeLowCardinality.cpp Non-recursive implementation for TL and its functions 2021-10-03 18:02:04 +02:00
DataTypeLowCardinality.h Refactor and improve TSV, CSV and JSONCompactEachRow formats, fix some bugs in formats 2021-10-14 13:32:49 +03:00
DataTypeLowCardinalityHelpers.cpp Fix build error 2021-03-12 16:08:16 +08:00
DataTypeMap.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeMap.h better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeNested.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeNested.h return back data types 2021-03-09 17:10:28 +03:00
DataTypeNothing.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeNothing.h return back data types 2021-03-09 17:10:28 +03:00
DataTypeNullable.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeNullable.h better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeNumberBase.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeNumberBase.h Non-recursive implementation for TL and its functions 2021-10-03 18:02:04 +02:00
DataTypesDecimal.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypesDecimal.h Rename "common" to "base" 2021-10-02 10:13:14 +03:00
DataTypeSet.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
DataTypesNumber.cpp Remove code that I do not like (crazy templates) 2021-05-04 20:26:09 +03:00
DataTypesNumber.h Normalize bigint fields 2021-05-03 18:20:12 +03:00
DataTypeString.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeString.h better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
DataTypeTuple.cpp optimize tupleElement to reading of subcolumn 2021-11-10 22:24:28 +03:00
DataTypeTuple.h optimize tupleElement to reading of subcolumn 2021-11-10 22:24:28 +03:00
DataTypeUUID.cpp Untangle UUID 2021-05-04 01:46:51 +03:00
DataTypeUUID.h fix reinterpretAsFixedString for UUID 2021-05-18 01:50:27 +00:00
EnumValues.cpp Add CapnProto output format, refactor CapnProto input format 2021-10-14 16:43:22 +03:00
EnumValues.h Add CapnProto output format, refactor CapnProto input format 2021-10-14 16:43:22 +03:00
FieldToDataType.cpp Better nullable primary key implementation. 2021-08-28 17:48:28 +08:00
FieldToDataType.h Better nullable primary key implementation. 2021-08-28 17:48:28 +08:00
getLeastSupertype.cpp fix date32 comparison with datetime/datetime64 2021-10-18 08:53:25 +00:00
getLeastSupertype.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
getMostSubtype.cpp replace all isDateOrDateTime invocations to explicit calls to isDate and isDateTime and isDateTime64 2021-05-28 15:34:49 +03:00
getMostSubtype.h dbms/ → src/ 2020-04-03 18:14:31 +03:00
IDataType.cpp better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00
IDataType.h Merge branch 'master' into tsv-csv 2021-10-18 14:38:22 +03:00
IDataTypeDummy.h return back data types 2021-03-09 17:10:28 +03:00
Native.h Remove cruft 2021-10-28 02:10:39 +03:00
NestedUtils.cpp fix nested and scalar columns with dot 2021-09-02 20:22:01 +03:00
NestedUtils.h Support inserting nested as Array of structs, add some refactoring 2021-08-05 14:10:27 +03:00
NumberTraits.h Replacing IsDecimalNumber 2021-09-11 00:40:18 +02:00
registerDataTypeDateTime.cpp Simplifying exception messages 2021-09-11 00:40:18 +02:00
TimezoneMixin.h better interfaces for IDataType and ISerialization 2021-10-14 05:36:49 +03:00