MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / validateStorage

Function validateStorage

src/Interpreters/InterpreterCreateQuery.cpp:1910–1930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1908}
1909
1910void validateStorage(IStorage & storage, LoadingStrictnessLevel mode, ContextPtr context)
1911try
1912{
1913 validateVirtualColumns(storage, context);
1914 checkForUnsupportedColumns(storage, mode, context);
1915}
1916catch (...)
1917{
1918 if (mode <= LoadingStrictnessLevel::CREATE)
1919 {
1920 try
1921 {
1922 storage.drop();
1923 }
1924 catch (...)
1925 {
1926 tryLogCurrentException("validateStorage");
1927 }
1928 }
1929 throw;
1930}
1931
1932}
1933

Callers 2

doCreateTableMethod · 0.85

Calls 4

validateVirtualColumnsFunction · 0.85
tryLogCurrentExceptionFunction · 0.50
dropMethod · 0.45

Tested by

no test coverage detected