Related Party Transactions - Additional Information (Detail) | Apr. 21, 2017$ / sharesshares | Apr. 04, 2017USD ($) | Apr. 21, 2017USD ($)$ / sharesshares | Dec. 31, 2016USD ($)$ / shares | Dec. 31, 2016USD ($)$ / sharesshares | Dec. 31, 2017USD ($) | Dec. 31, 2017USD ($)Nominee$ / sharesshares | Dec. 23, 2016USD ($) |
Related Party Transaction [Line Items] | | | | | | | | |
Sponsor note | | | | $ 20,000 | $ 20,000 | | | |
Repayment of loan | | | | | | | $ 265,000 | |
Private Placement [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Minimum required threshold period to change in ownership of warrants on completion of initial business combination | | | 30 days | | | | | |
Over-Allotment Units [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Number of founder shares purchased by Sponsor | shares | 2,732,112 | | 2,732,112 | | | | | |
Number of warrants purchased | shares | | | 364,281 | | | | | |
Price per warrant | $ / shares | | | $ 1.50 | | | | | |
Class A Common Stock [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Number of founder shares purchased by Sponsor | shares | | | | | | | 37,732,112 | |
Class B Common Stock [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Proceeds from issuance of founder shares | | | | $ 25,000 | | | | |
Kayne Anderson Sponsor, LLC [Member] | Private Placement [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Number of warrants purchased | shares | | | 6,364,281 | | | | | |
Price per warrant | $ / shares | | | $ 1.50 | | | | | |
Proceeds from issuance of warrants | | | $ 9,546,422 | | | | | |
Period to complete Initial Business Combination | | | 24 months | | | | | |
Kayne Anderson Sponsor, LLC [Member] | Class A Common Stock [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Founder shares, earliest period to transfer, assign or sell | | | | | | | 1 year | |
Founder shares, stock price trigger | $ / shares | | | | | | | $ 12 | |
Founder shares, threshold trading days | | | | | | | 20 days | |
Founder shares, threshold consecutive trading days | | | | | | | 30 days | |
Founder shares, commencement period | | | | | | | 150 days | |
Kayne Anderson Sponsor, LLC [Member] | Class A Common Stock [Member] | Private Placement [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Number of shares of common stock converted from each warrant (in shares) | shares | 1 | | 1 | | | | | |
Warrant exercise price | $ / shares | $ 11.50 | | $ 11.50 | | | | | |
Kayne Anderson Sponsor, LLC [Member] | Class B Common Stock [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Number of founder shares purchased by Sponsor | shares | | | | | 10,062,500 | | | |
Proceeds from issuance of founder shares | | | | | $ 25,000 | | | |
Shares issued, price per share | $ / shares | | | | $ 0.002 | $ 0.002 | | | |
Number of founder shares transferred to independent directors by Sponsor | shares | | | | | | | 40,000 | |
Aggregate number of founder shares transferred to independent directors by Sponsor | shares | | | | | | | 120,000 | |
Number of independent directors | Nominee | | | | | | | 3 | |
Maximum number of founder shares agreed to forfeit by Sponsor | shares | | | | | | | 1,312,500 | |
Ownership percentage of founder shares in company's issued and outstanding shares | 20.00% | | 20.00% | | | | | |
Founder shares forfeited by sponsor | shares | 629,472 | | | | | | | |
Kayne Anderson Sponsor, LLC [Member] | Related Party Loans [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Loan from related party | | | | | | | | $ 300,000 |
Sponsor note | | $ 265,000 | | $ 20,000 | $ 20,000 | | | |
Repayment of loan | | $ 265,000 | | | | | | |
Related party loan outstanding | | | | | | $ 0 | $ 0 | |
Affiliate of Kayne Anderson Sponsor, LLC [Member] | Administrative Support Agreement [Member] | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | |
Related party transaction expense per month | | | | | | $ 5,000 | | |
Related party transaction expense paid for office space | | | | | | | $ 45,000 | |