ClickHouse/tests/queries/0_stateless/02685_bson2.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
21 KiB
MySQL
Raw Normal View History

2023-03-14 00:22:27 +00:00
-- It correctly throws exception about incorrect data:
SELECT * FROM format('BSONEachRow',
'WatchID Int64, JavaEnable Int16, Title String, GoodEvent Int16, EventTime DateTime, EventDate Date, CounterID Int32, ClientIP Int32, RegionID Int32, UserID Int64, CounterClass Int16, OS Int16, UserAgent Int16, URL String, Referer String, IsRefresh Int16, RefererCategoryID Int16, RefererRegionID Int32, URLCategoryID Int16, URLRegionID Int32, ResolutionWidth Int16, ResolutionHeight Int16, ResolutionDepth Int16, FlashMajor Int16, FlashMinor Int16, FlashMinor2 String, NetMajor Int16, NetMinor Int16, UserAgentMajor Int16, UserAgentMinor String, CookieEnable Int16, JavascriptEnable Int16, IsMobile Int16, MobilePhone Int16, MobilePhoneModel String, Params String, IPNetworkID Int32, TraficSourceID Int16, SearchEngineID Int16, SearchPhrase String, AdvEngineID Int16, IsArtifical Int16, WindowClientWidth Int16, WindowClientHeight Int16, ClientTimeZone Int16, ClientEventTime DateTime, SilverlightVersion1 Int16, SilverlightVersion2 Int16, SilverlightVersion3 Int32, SilverlightVersion4 Int16, PageCharset String, CodeVersion Int32, IsLink Int16, IsDownload Int16, IsNotBounce Int16, FUniqID Int64, OriginalURL String, HID Int32, IsOldCounter Int16, IsEvent Int16, IsParameter Int16, DontCountHits Int16, WithHash Int16, HitColor String, LocalEventTime DateTime, Age Int16, Sex Int16, Income Int16, Interests Int16, Robotness Int16, RemoteIP Int32, WindowName Int32, OpenerName Int32, HistoryLength Int16, BrowserLanguage String, BrowserCountry String, SocialNetwork String, SocialAction String, HTTPError Int16, SendTiming Int32, DNSTiming Int32, ConnectTiming Int32, ResponseStartTiming Int32, ResponseEndTiming Int32, FetchTiming Int32, SocialSourceNetworkID Int16, SocialSourcePage String, ParamPrice Int64, ParamOrderID String, ParamCurrency String, ParamCurrencyID Int16, OpenstatServiceName String, OpenstatCampaignID String, OpenstatAdID String, OpenstatSourceID String, UTMSource String, UTMMedium String, UTMCampaign String, UTMContent String, UTMTerm String, FromTag String, HasGCLID Int16, RefererHash Int64, URLHash Int64, CLID Int32',
$$^WatchIDc*5/ !p~JavaEnableTitleGoodEventEventTime7<EFBFBD><EFBFBD>QEventDate>CounterIDClientIP<EFBFBD><EFBFBD>z<EFBFBD>RegionIDGUserID<EFBFBD> <EFBFBD><EFBFBD>:6<EFBFBD><EFBFBD>CounterClassOSUserAgentURLRefererIsRefreshRefererCategoryIDRefererRegionIDURLCategoryIDURLRegionIDResolutionWidthResolutionHeightResolutionDepthFlashMajorFlashMinorFlashMinor2NetMajorNetMinorUserAgentMajorUserAgentMinor<EFBFBD>OCookieEnableJavascriptEnableIsMobileMobilePhoneMobilePhoneModelParamsIPNetworkID<EFBFBD><EFBFBD>9TraficSourceIDSearchEngineIDSearchPhraseAdvEngineIDIsArtificalWindowClientWidthWindowClientHeightClientTimeZone<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ClientEventTime<EFBFBD><EFBFBD>SilverlightVersion2SilverlightVersion2SilverlightVersion3SilverlightVersion4PageCharsetCodeVersionIsLinkIsDownloadIsNotBounceFUniqIDOriginalURLHIDIsOldCounterIsEventIsParameterDontCountHitsWithHashHitColor5LocalEventTime&<EFBFBD><EFBFBD>QAgeSexIncomeInterestsRobotnessRemoteIP^DI<EFBFBD>WindowName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>OpenerName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>HistoryLength<EFBFBD><EFBFBD><EFBFBD><EFBFBD>BrowserLanguage<EFBFBD>BrowserCountry<EFBFBD> SocialNetworkSocialActionHTTPErrorSendTimingDNSTimingConnectTimingResponseStartTimingResponseEndTimingFetchTimingSocialSourceNetworkIDSocialSourcePageParamPriceParamOrderIDParamCurrencyNHParamCurrencyIDOpenstatServiceNameOpenstatCampaignIDOpenstatAdIDOpenstatSourceIDUTMSourceUTMMediumUTMCampaignUTMContentUTMTermFromTagHasGCLIDRefererHashX+<EFBFBD><EFBFBD>'<EFBFBD><EFBFBD><EFBFBD>URLHash<00>|3<><33>b.<2E>CLID^WatchID<00><>F<EFBFBD>ӓ2qJavaEnableTitleGoodEventEventTimen$<24>QEventDate>CounterIDClientIP<00><>z<EFBFBD>RegionIDGUserID<00> <20><>:6<><36>CounterClassOSUserAgentURLRefererIsRefreshRefererCategoryIDRefererRegionIDURLCategoryIDURLRegionIDResolutionWidthResolutionHeightResolutionDepthFlashMajorFlashMinorFlashMinor2NetMajorNetMinorUserAgentMajorUserAgentMinor<00>OCookieEnableJavascriptEnableIsMobileMobilePhoneMobilePhoneModelParamsIPNetworkID<00><>9TraficSourceIDSearchEngineIDSearchPhraseAdvEngineIDIsArtificalWindowClientWidthWindowClientHeightClientTimeZone<00><><EFBFBD><EFBFBD>ClientEventTime<16><>SilverlightVersion1SilverlightVersion2SilverlightVersion3SilverlightVersion4PageCharsetCodeVersionIsLinkIsDownloadIsNotBounceFUniqIDOriginalURLHIDIsOldCounterIsEventIsParameterDontCountHitsWithHashHitColor5LocalEventTimeǘ<>QAgeSexIncomeInterestsRobotnessRemoteIP^DI<44>WindowName<00><><EFBFBD><EFBFBD>OpenerName<00><><EFBFBD><EFBFBD>HistoryLength<00><><EFBFBD><EFBFBD>BrowserLanguage<00>BrowserCountry<00> SocialNetworkSocialActionHTTPErrorSendTimingDNSTimingConnectTimingResponseStartTimingResponseEndTimingFetchTimingSocialSourceNetworkIDSocialSourcePageParamPriceParamOrderIDParamCurrencyNHParamCurrencyIDOpenstatServiceNameOpenstatCampaignIDOpenstatAdIDOpenstatSourceIDUTMSourceUTMMediumUTMCampaignUTMContentUTMTermFromTagHasGCLIDRefererHashX+<2B><>'<EFBFBD><EFBFBD><EFBFBD>URLHash<EFBFBD>|3<EFBFBD><EFBFBD>b.<EFBFBD>CLID^WatchIDl!<EFBFBD><EFBFBD>|<EFBFBD>@HJavaEnableTitleGoodEventEventTime<EFBFBD>)<EFBFBD>QEventDate>CounterIDClientIP<EFBFBD><EFBFBD>z<EFBFBD>RegionIDGUserID<EFBFBD> <EFBFBD><EFBFBD>:6<EFBFBD><EFBFBD>CounterClassOSUserAgentURLRefererIsRefreshRefererCategoryIDRefererRegionIDURLCategoryIDURLRegionIDRes
o<EFBFBD><EFBFBD><EFBFBD>eCLID<EFBFBD>WatchID<EFBFBD><EFBFBD>k=<EFBFBD><EFBFBD>pJavaEnableTitleGoodEventEventTime<EFBFBD> <EFBFBD>QEventDate>CounterIDClientIP<EFBFBD><EFBFBD>z<EFBFBD>RegionIDGUserID <EFBFBD>Ks}<EFBFBD><EFBFBD>CounterClassOSUserAgentURLHhttp://afisha.mail.ru/catalog/314/women.ru/ency=1&page3/?errovat-pinnikiRefererIsRefreshRefererCategoryIDRefererRegionIDURLCategoryID0=URLRegionID<EFBFBD>ResolutionWidthResolutionHeightResolutionDepthFlashMajorFlashMinorFlashMinor2NetMajorNetMinorUserAgentMajorUserAgentMinorD<EFBFBD>CookieEnableJavascriptEnableIsMobileMobilePhoneMobilePhoneModelParamsIPNetworkID<EFBFBD><EFBFBD>9TraficSourceIDSearchEngineIDSearchPhraseAdvEngineIDIsArtificalWindowClientWidthWindowClientHeightClientTimeZone<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ClientEventTime<EFBFBD><EFBFBD>SilverlightVersion1SilverlightVersion2SilverlightVersion3SilverlightVersion4PageCharsetCodeVersionIsLinkIsDownloadIsNotBounceFUniqID:<EFBFBD><EFBFBD>W<EFBFBD><EFBFBD>mOriginalURLHIDIsOldCounterIsEventIsParameterDontCountHitsWithHashHitColor5LocalEventTimeA<EFBFBD><EFBFBD>QAgeSexIncomeInterestsRobotnessRemoteIP^DI<EFBFBD>WindowName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>OpenerName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>HistoryLength<EFBFBD><EFBFBD><EFBFBD><EFBFBD>BrowserLanguage<EFBFBD>BrowserCountry<EFBFBD> SocialNetworkSocialActionHTTPErrorSendTimingDNSTimingConnectTimingResponseStartTimingResponseEndTimingFetchTimingSocialSourceNetworkIDSocialSourcePageParamPriceParamOrderIDParamCurrencyNHParamCurrencyIDOpenstatServiceNameOpenstatCampaignIDOpenstatAdIDOpenstatSourceIDUTMSourceUTMMediumUTMCampaignUTMContentUTMTermFromTagHasGCLIDRefererHashX+<EFBFBD><EFBFBD>'<EFBFBD><EFBFBD><EFBFBD>URLHash<00><> <EFBFBD>#<23>\CLID<00>WatchID<00>1<EFBFBD><31> o<>CJavaEnableTitleGoodEventEventTime<00>0<EFBFBD>QEventDate>CounterIDClientIP<00>^{]RegionID<00>UserID&n%<25>t"6CounterClassOS'UserAgentURL>http://bonprix.ru/index.ru/cinema/art/0 986 424 233 сезонRefererIsRefreshRefererCategoryIDRefererRegionIDURLCategoryIDURLRegionID<EFBFBD>ResolutionWidthResolutionHeightResolutionDepthFlashMajorFlashMinorFlashMinor2NetMajorNetMinorUserAgentMajorUserAgentMinorD<EFBFBD>CookieEnableJavascriptEnableIsMobileMobilePhoneMobilePhoneModelParamsIPNetworkID<EFBFBD>#(TraficSourceIDSearchEngineIDSearchPhraseAdvEngineIDIsArtificalWindowClientWidthWindowClientHeightClientTimeZone<00><><EFBFBD><EFBFBD>ClientEventTime<16><>SilverlightVersion1SilverlightVersion2SilverlightVersion3SilverlightVersion4PageCharsetCodeVersionIsLinkIsDownloadIsNotBounceFUniqIDOriginalURLHIDIsOldCounterIsEventIsParameterDontCountHitsWithHashHitColor5LocalEventTime<00><><EFBFBD>QAgeSexIncomeInterestsRobotnessRemoteIP<17>UWindowName<00><><EFBFBD><EFBFBD>OpenerName<00><><EFBFBD><EFBFBD>HistoryLength<00><><EFBFBD><EFBFBD>BrowserLanguage<00>BrowserCountry<00> SocialNetworkSocialActionHTTPErrorSendTimingDNSTimingConnectTimingResponseStartTimingResponseEndTimingFetchTimingSocialSourceNetworkIDSocialSourcePageParamPriceParamOrderIDParamCurrencyNHParamCurrencyIDOpenstatServiceNameOpenstatCampaignIDOpenstatAdIDOpenstatSourceIDUTMSourceUTMMediumUTMCampaignUTMContentUTMTermFromTagHasGCLIDRefererHashX+<2B><>'<27><><EFBFBD>URLHashX-h<><68>X CLID<00>WatchID»-<2D>C_JavaEnableTitleGoodEventEventTime83<38>QEventDate>CounterIDClientIP<00>^{]RegionID<00>UserID&n%<25>t"6CounterClass
2023-03-15 22:58:55 +00:00
<EFBFBD><EFBFBD>QAgeSexIncomeInterestsRobotnessRemoteIP<EFBFBD>UWindowName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>OpenerName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>HistoryLength<EFBFBD><EFBFBD><EFBFBD><EFBFBD>BrowserLanguage<EFBFBD>BrowserCountry<EFBFBD> SocialNetworkSocialActionHTTPErrorSendTimingDNSTimingConnectTimingResponseStartTimingResponseEndTimingFetchTimingSocialSourceNetworkIDSocialSourcePageParamPriceParamOrderIDParamCurrencyNHParamCurrencyIDOpenstatServiceNameOpenstatCampaignIDOpenstatAdIDOpenstatSourceIDUTMSourceUTMMediumUTMCampaignUTMContentUTMTermFromTagHasGCLIDRefererHashX+<EFBFBD><EFBFBD>'<EFBFBD><EFBFBD><EFBFBD>URLHashv<>v<01><><EFBFBD><EFBFBD>CLID<00>WatchID<00><><0E>\JavaEnableTitleGoodEventEventTime<00> <20>QEventDate>CounterIDClientIP<00>gURegionID<00>UserID<00>s<EFBFBD>yy<79><79>fCounterClassOS,UserAgentURL1http://tours/Ekategoriya%2F&sr=http://slovareniyeRefererIsRefreshRefererCategoryIDRefererRegionIDURLCategoryIDURLRegionID<00>esRolutionWidthResolutionHeightResolutionDepthFlashMajorFlashMinorFlashMinor2NetMajorNetMinorUserAgentMajor UserAgentMinorD<>CookieEnableJavascriptEnableIsMobileMobilePhoneMobilePhoneModelParamsIPNetworkID<00><>TraficSourceIDSearchEngineIDSearchPhraseAdvEngineIDIsArtificalWindowClientWidthWindowClientHeightClientTimeZone<00><><EFBFBD><EFBFBD>ClientEventTime<16><>SilverlightVersion1SilverlightVersion2SilverlightVersion3SilverlightVersion4PageCharsetCodeVersionIsLinkIsDownloadIsNotBounceFUniqIDOriginalURLHIDIsOldCounterIsEventIsParameterDontCountHitsWithHashHitColor5LocalEventTimeY<><59>QAgeSexIncomeInterestsRobotnessRemoteIP<00>=kWindowName<00><><EFBFBD><EFBFBD>OpenerName<00><><EFBFBD><EFBFBD>HistoryLength<00><><EFBFBD><EFBFBD>BrowserLanguage<00>BrowserCountry<00> SocialNetworkSocialActionHTTPErrorSendTimingDNSTimingConnectTimingResponseStartTimingResponseEndTimingFetchTimingSocialSourceNetworkIDSocialSourcePageParamPriceParamOrderIDParamCurrencyNHParamCurrencyIDOpenstatServiceNameOpenstatCampaignIDOpenstatAdIDOpenstatSourceIDUTMSourceUTMMediumUTMCampaignUTMContentUTMTermFromTagHasGCLIDRefererHashX+<2B><>'<EFBFBD><EFBFBD><EFBFBD>URLHashh<EFBFBD><EFBFBD>9<EFBFBD>DCLID^WatchID<EFBFBD>/E<EFBFBD><EFBFBD>J<EFBFBD>{JavaEnableTitleGoodEventEventTime<EFBFBD>1<EFBFBD>QEventDate>CounterIDClientIP<EFBFBD><EFBFBD>z<EFBFBD>RegionIDGUserID<EFBFBD> <EFBFBD><EFBFBD>:6<EFBFBD><EFBFBD>CounterClassOSUserAgentURLRefererIsRefreshRefererCategoryIDRefererRegionIDURLCategoryIDURLRegionIDResolutionWidthResolutionHeightResolutionDepthFlashMajorFlashMinorFlashMinor2NetMajorNetMinorUserAgentMajorUserAgentMinor<EFBFBD>OCookieEnableJavascriptEnableIsMobileMobilePhoneMobilePhoneModelParamsIPNetworkID<EFBFBD><EFBFBD>9TraficSourceIDSearchEngineIDSearchPhraseAdvEngineIDIsArtificalWindowClientWidthWindowClientHeightClientTimeZone<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ClientEventTime<EFBFBD><EFBFBD>SilverlightVersion1SilverlightVersion2SilverlightVersion3SilverlightVersion4PageCharsetCodeVersionIsLinkIsDownloadIsNotBounceFUniqIDOriginalURLHIDIsOldCounterIsEventIsParameterDontCountHitsWithHashHitColor5LocalEventTime<EFBFBD><EFBFBD><EFBFBD>QAgeSexIncomeInterestsRobotnessRemoteIP^DI<EFBFBD>WindowName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>OpenerName<EFBFBD><EFBFBD><EFBFBD><EFBFBD>HistoryLength<EFBFBD><EFBFBD><EFBFBD><EFBFBD>BrowserLanguage<EFBFBD>BrowserCountry<EFBFBD> SocialNetworkSocialActionHTTPErrorSendTimingDNSTimingConnec